@Test
public void testDecimalTypeOnStateUpdateFromHandler() {

    ProfileCallback callback = mock(ProfileCallback.class);
    SystemOffsetProfile offsetProfile = createProfile(callback, "3");
    State state = new DecimalType(23);
    offsetProfile.onStateUpdateFromHandler(state);
    ArgumentCaptor<State> capture = ArgumentCaptor.forClass(State.class);
    verify(callback, times(1)).sendUpdate(capture.capture());
    State result = capture.getValue();
    DecimalType decResult = (DecimalType) result;
    assertEquals(26, decResult.intValue());
}