ExecuteTaskStrategy implements ITaskProcessStrategy { @Override public void process(final ITaskExecutionState state) throws TaskExecutionException, InvalidArgumentException, TaskProcessException { state.execute(); }  @Override void process(final ITaskExecutionState state);  }
@Test public void Should_executeTask() throws Exception { ITaskExecutionState taskExecutionState = mock(ITaskExecutionState.class); new ExecuteTaskStrategy().process(taskExecutionState); verify(taskExecutionState).execute(); verifyNoMoreInteractions(taskExecutionState); }