public function testApiRegisterAdapter_RegistersAdapter_WhenClassNameSet()
{
$factory = $this->createFilesystemAdapterFactory();
$key = 'Other';
$adapterFactory = FilesystemAdapterSimpleFactoryMock::class;
$config = ['param1' => 'ARG_PARAM_1', 'param2' => null, 'param3' => 0];
$this->assertFalse($factory->hasDefinition($key));
$this->callProtectedMethod($factory, 'registerAdapter', [$key, $adapterFactory]);
$adapter = $factory->create($key, [$config]);
$this->assertInstanceOf(FilesystemAdapterMock::class, $adapter);
$this->assertSame($config, $adapter->getArgs()[0]);
}