@Test public void testHandle() throws ResourceAllocationException { final BaseCmd cmd = mock(BaseCmd.class); final Map<String, String> params = new HashMap<>(); final SpecificCmdValidationWorker worker = new SpecificCmdValidationWorker(); worker.handle(new DispatchTask(cmd, params)); verify(cmd, times(1)).validateSpecificParameters(params); }
@Override public void handle(final DispatchTask task) { task.getCmd().validateSpecificParameters(task.getParams()); }
SpecificCmdValidationWorker implements DispatchWorker { @Override public void handle(final DispatchTask task) { task.getCmd().validateSpecificParameters(task.getParams()); } }
SpecificCmdValidationWorker implements DispatchWorker { @Override public void handle(final DispatchTask task) { task.getCmd().validateSpecificParameters(task.getParams()); }  }
SpecificCmdValidationWorker implements DispatchWorker { @Override public void handle(final DispatchTask task) { task.getCmd().validateSpecificParameters(task.getParams()); }  @Override void handle(final DispatchTask task); }
SpecificCmdValidationWorker implements DispatchWorker { @Override public void handle(final DispatchTask task) { task.getCmd().validateSpecificParameters(task.getParams()); }  @Override void handle(final DispatchTask task);  }