@Test
public void setStateStateHSB50ReturnPercent50() {

    // HSB supported because it is a sub-type of PercentType
    RollershutterItem sut = new RollershutterItem("Test");
    State state = new HSBType("5,23,42");
    sut.setState(state);
    assertEquals(new PercentType(42), sut.getState());
}