@Test
public void testConversionToOpenCloseType() {

    assertEquals(OpenClosedType.OPEN, new PercentType("100.0").as(OpenClosedType.class));
    assertEquals(OpenClosedType.CLOSED, new PercentType("0.0").as(OpenClosedType.class));
    assertNull(new PercentType("50.0").as(OpenClosedType.class));
}