ConditionEvaluationResult (ExtensionContext context) { if (IS_LOCAL_RUN) { return ENABLED_LOCALLY; } boolean hasAnnotation = AnnotationSupport.findAnnotation(context.getTestClass(), HardwareAgentRequired.class).isPresent(); return hasAnnotation == RUN_WITH_HARDWARE_REQUIREMENT ? MET_HARDWARE_REQUIREMENT : UNMET_HARDWARE_REQUIREMENT; }