### Question:
TokenMonitoringResultHandler implements ResultHandler<Token, CoreTokenException> { @Override public void processError(Exception error) { store.addTokenOperation(null, operation, false); handler.processError(error); } TokenMonitoringResultHandler(ResultHandler<Token, CoreTokenException> handler, CTSOperationsMonitoringStore store,
                                        CTSOperation operation); @Override Token getResults(); @Override void processResults(Token result); @Override void processError(Exception error);  }### Answer:
@Test public void shouldInvokeStoreOnProcessError() { handler.processError(mock(CoreTokenException.class)); verify(mockStore).addTokenOperation((Token) eq(null), eq(operation), eq(false)); }