@Test
public void testDecimalTypeOnCommandFromItem() {

    ProfileCallback callback = mock(ProfileCallback.class);
    SystemOffsetProfile offsetProfile = createProfile(callback, "3");
    Command cmd = new DecimalType(23);
    offsetProfile.onCommandFromItem(cmd);
    ArgumentCaptor<Command> capture = ArgumentCaptor.forClass(Command.class);
    verify(callback, times(1)).handleCommand(capture.capture());
    Command result = capture.getValue();
    DecimalType decResult = (DecimalType) result;
    assertEquals(20, decResult.intValue());
}