TestEventResult (OperationResult result) { if (result instanceof SuccessResult) { return SUCCESS; } else if (result instanceof FailureResult) { return FAILURE; } else if (result instanceof SkippedResult) { return SKIPPED; } else { return UNKNOWN_RESULT; } }