@Test
public void testConversionToOnOffType() {

    assertEquals(OnOffType.ON, new DecimalType("100.0").as(OnOffType.class));
    assertEquals(OnOffType.ON, new DecimalType("1.0").as(OnOffType.class));
    assertEquals(OnOffType.OFF, new DecimalType("0.0").as(OnOffType.class));
}