@Test
public void testQuantityTypeOnStateUpdateFromHandlerDecimalOffset() {

    ProfileCallback callback = mock(ProfileCallback.class);
    SystemOffsetProfile offsetProfile = createProfile(callback, "3");
    State state = new QuantityType<>("23 °C");
    offsetProfile.onStateUpdateFromHandler(state);
    ArgumentCaptor<State> capture = ArgumentCaptor.forClass(State.class);
    verify(callback, times(1)).sendUpdate(capture.capture());
    State result = capture.getValue();
    @SuppressWarnings("unchecked")
    QuantityType<Temperature> decResult = (QuantityType<Temperature>) result;
    assertEquals(26, decResult.intValue());
    assertEquals(SIUnits.CELSIUS, decResult.getUnit());
}