assertEquals("Expected operation id not to change", OPERATION_ID, response.getId());
}
public void testProcessErrorEvent() throws Exception {
// A randomly selected non-error event
Event event = new OperationErrorEvent(null, null, USERNAME, 0L, OPERATION_ID, ERROR_MESSAGE);
operationContext.processEvent(request, event);
JsonRpcResponse response = operationContext.getResponse(request.getId());
assertTrue("Expected error response", response.isError());
assertEquals("Expected provided error message", ERROR_MESSAGE, response.getErrorMessage());