@Test
public void numberItemWitDimensionShouldConvertToLocaleBasedUnit() {

    NumberItem item = mock(NumberItem.class);
    doReturn(Temperature.class).when(item).getDimension();
    State originalState = new QuantityType<>("12.34 °C");
    State convertedState = itemStateConverter.convertToAcceptedState(originalState, item);
    assertThat(convertedState, is(new QuantityType<>("54.212 °F")));
}