### Question:
SystemDefaultProfile implements StateProfile { @Override public void onStateUpdateFromHandler(State state) { callback.sendUpdate(state); } SystemDefaultProfile(ProfileCallback callback); @Override ProfileTypeUID getProfileTypeUID(); @Override void onCommandFromItem(Command command); @Override void onStateUpdateFromHandler(State state); @Override void onCommandFromHandler(Command command); @Override void onStateUpdateFromItem(State state);  }### Answer:
@Test public void testStateUpdated() { SystemDefaultProfile profile = new SystemDefaultProfile(mockCallback); profile.onStateUpdateFromHandler(OnOffType.ON); verify(mockCallback).sendUpdate(eq(OnOffType.ON)); verifyNoMoreInteractions(mockCallback); }