assertEquals("colorChange return the wrong value", ColorDeviceState.RUNNING.getColor(),
listenerSpy.getNotification("colorChange"));
// test listener is not notify after remove
widget.removeDeviceListener(listenerSpy);
listenerSpy.reset();
switchStateOnDevice(0, m_deviceProxy);
Sleeper.SECONDS.sleep(3);
assertEquals("Listener should not be called", 0, listenerSpy.getNotifyCount());