DiscardOutputHandler implements OperationHandler<DiscardOutput> { @Override public Void doOperation(final DiscardOutput operation, final Context context, final Store store) throws OperationException { return null; }  @Override Void doOperation(final DiscardOutput operation, final Context context, final Store store);  }
@Test public void shouldDiscardOutput() throws OperationException { final DiscardOutputHandler handler = new DiscardOutputHandler(); final DiscardOutput operation = mock(DiscardOutput.class); given(operation.getInput()).willReturn(null); final Void results = handler.doOperation(operation, new Context(), null); assertThat(results, is(nullValue())); }