@Test
public void testConversionToUpDownType() {

    assertEquals(UpDownType.UP, new DecimalType("0.0").as(UpDownType.class));
    assertEquals(UpDownType.DOWN, new DecimalType("1.0").as(UpDownType.class));
    assertNull(new DecimalType("0.5").as(OpenClosedType.class));
}