### Question:
RequestValidator { public RequestParameters validate(final Request request) throws ValidationException { return validate(request, new ValidationData<>()); } RequestValidator(final OpenApi3 openApi);  RequestValidator(final ValidationContext<OAI3> context, final OpenApi3 openApi); OperationValidator getValidator(final Path path, final Operation operation); RequestParameters validate(final Request request); RequestParameters validate(final Request request, final ValidationData<?> validation); RequestParameters validate(final Request request,
                                    final Path path,
                                    final Operation operation); RequestParameters validate(final Request request,
                                    final Path path,
                                    final Operation operation,
                                    final ValidationData<?> validation); void validate(final Response response,
                       final Path path,
                       final Operation operation); void validate(final Response response,
                       final Path path,
                       final Operation operation,
                       final ValidationData<?> validation);  }### Answer:
@Test(expected = ValidationException.class) public void operationMethodNotFound() throws ValidationException, ResolutionException { URL specPath = RequestValidatorTest.class.getResource("/request/requestValidator.yaml"); OpenApi3 api = new OpenApi3Parser().parse(specPath, false); RequestValidator requestValidator = new RequestValidator(api); Request rq = new DefaultRequest.Builder("https: try { requestValidator.validate(rq); } catch (ValidationException ex) { if (!ex.getMessage().contains("Operation not found from URL")) { fail(); } else { throw ex; } } }