@Test
public void setPercentType() {

    NumberItem item = new NumberItem(ITEM_NAME);
    State percent = new PercentType(50);
    item.setState(percent);
    assertEquals(percent, item.getState());
}