DeviceCRUDListener implements DeviceStateProvider { public void init() { m_deviceManager.addDeviceStateProvider(this); } DeviceCRUDListener(DeviceManager deviceManager, PmaRegistryImpl pmaRegistry); void init(); void destroy(); @Override void deviceAdded(String deviceName); @Override void deviceRemoved(String deviceName);  }
@Test public void testInitRegisters() { verifyZeroInteractions(m_deviceManager); m_listener.init(); verify(m_deviceManager).addDeviceStateProvider(m_listener); }