@Test
public void testSetQuantityTypeAccepted() {

    NumberItem item = new NumberItem("Number:Temperature", ITEM_NAME);
    item.setState(new QuantityType<>("20 °C"));
    assertThat(item.getState(), is(new QuantityType<>("20 °C")));
}