@Test
public void testConversionToOpenCloseType() {

    assertEquals(OpenClosedType.OPEN, new DecimalType("1.0").as(OpenClosedType.class));
    assertEquals(OpenClosedType.CLOSED, new DecimalType("0.0").as(OpenClosedType.class));
    assertNull(new DecimalType("0.5").as(OpenClosedType.class));
}