@Test
public void testConversionToOnOffType() {

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