@Test
public void testConversionToUpDownType() {

    assertEquals(UpDownType.UP, new PercentType("0.0").as(UpDownType.class));
    assertEquals(UpDownType.DOWN, new PercentType("100.0").as(UpDownType.class));
    assertNull(new PercentType("50.0").as(OpenClosedType.class));
}