@Test
public void testSetStateWithOnOffType() {

    ColorItem item = new ColorItem("test");
    item.setState(OnOffType.ON);
    assertEquals(new HSBType("0,0,100"), item.getState());
    item.setState(OnOffType.OFF);
    assertEquals(new HSBType("0,0,0"), item.getState());
}