SystemDefaultProfile implements StateProfile { @Override public void onCommandFromItem(Command command) { callback.handleCommand(command); } 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);  }
@Test public void testOnCommand() { SystemDefaultProfile profile = new SystemDefaultProfile(mockCallback); profile.onCommandFromItem(OnOffType.ON); verify(mockCallback).handleCommand(eq(OnOffType.ON)); verifyNoMoreInteractions(mockCallback); }