### Question:
ResponseAssertionsFromMatchingServiceValidator { public void validate(ValidatedResponse validatedResponse, ValidatedAssertions validatedAssertions) { if (!validatedResponse.isSuccess()) return; for (Assertion assertion : validatedAssertions.getAssertions()) { assertionValidator.validate(assertion, validatedResponse.getInResponseTo(), hubEntityId); if (assertion.getAuthnStatements().isEmpty()) { throw new SamlValidationException(missingAuthnStatement()); } if (assertion.getAuthnStatements().get(0).getAuthnContext() == null) { throw new SamlValidationException(authnContextMissingError()); } } } ResponseAssertionsFromMatchingServiceValidator(AssertionValidator assertionValidator, String hubEntityId); void validate(ValidatedResponse validatedResponse, ValidatedAssertions validatedAssertions);  }### Answer:
@Test public void validate_shouldNotThrowExceptionIfResponseIsANoMatch() throws Exception { String requestId = "some-request-id"; final Response response = aResponse() .withStatus(aStatus().withStatusCode(aStatusCode().withValue(StatusCode.RESPONDER).build()).build()) .withInResponseTo(requestId) .build(); validator.validate(new ValidatedResponse(response), new ValidatedAssertions(singletonList(anAssertion().buildUnencrypted()))); }