### Question:
DefaultAuthenticationStatementsProvider implements AuthenticationStatementsProvider { public List<AuthnStatement> get(SAML2Config saml2Config, String authNContextClassRef) throws TokenCreationException { try { AuthnStatement authnStatement = AssertionFactory.getInstance().createAuthnStatement(); authnStatement.setAuthnInstant(newDate()); AuthnContext authnContext = AssertionFactory.getInstance().createAuthnContext(); authnContext.setAuthnContextClassRef(authNContextClassRef); authnStatement.setAuthnContext(authnContext); ArrayList<AuthnStatement> statements = new ArrayList<AuthnStatement>(1); statements.add(authnStatement); return statements; } catch (SAML2Exception e) { throw new TokenCreationException(ResourceException.INTERNAL_ERROR, "Exception caught generating AuthenticationStatement in DefaultAuthenticationStatementProvider: " + e, e); } }  List<AuthnStatement> get(SAML2Config saml2Config, String authNContextClassRef);  }### Answer:
@Test public void testAuthNContext() throws TokenCreationException { AuthenticationStatementsProvider provider = new DefaultAuthenticationStatementsProvider(); List<AuthnStatement> statements = provider.get(createSAML2Config(), AUTHN_CONTEXT); assertTrue(AUTHN_CONTEXT.equals(statements.get(0).getAuthnContext().getAuthnContextClassRef())); }