PmaServerSessionFactory extends PmaSessionFactory { @Override public PmaSession create(String key) { Device device = m_deviceManager.getDevice(key); PmaServer pmaServer = createPmaServer(device); return new PmaServerSession(device, pmaServer, m_das); } PmaServerSessionFactory(String deviceFileBaseDirPath, DeviceManager deviceManager, NetConfServerImpl netconfServer,
                                   NetconfDeviceAlignmentService das, EntityRegistry entityRegistry, SchemaRegistry schemaRegistry,
                                   ModelNodeDSMRegistry modelNodeDsmRegistry, AdapterManager adapterManager); void init(); void destroy(); @Override PmaSession create(String key); @Override boolean validateObject(String key, PooledObject<PmaSession> session); @Override PooledObject<PmaSession> wrap(PmaSession value); @Override void deviceDeleted(String deviceName);  }
@Test public void testFacoryCreatesPmaServerSessions() throws Exception { PmaSession pmaServer = m_factory.create(m_deviceKey); assertTrue(pmaServer instanceof PmaServerSession); }