@Test
public void testConversionToUpDownType() {

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