### Question:
SAML2ClientConfigurationDecorator implements ClientConfigurationDecorator { @Override public void decorateClients(List<Client> clients, Map<String, String> properties) { for (Client client : clients) { if (SAML2_CLIENT_CLASS_NAME.equalsIgnoreCase(client.getName())) { final SAML2Client saml2Client = (SAML2Client) client; setUseNameQualifierFlag(properties, saml2Client); setForceAuthFlag(properties, saml2Client); setPassiveFlag(properties, saml2Client); setNameIdPolicyFormat(properties, saml2Client); } } }  @Override void decorateClients(List<Client> clients, Map<String, String> properties);  }### Answer:
@Test public void testSaml2ClientConfigurationDecoration() throws Exception { final SAML2Configuration saml2Configuration = new SAML2Configuration(); final SAML2Client client = new SAML2Client(saml2Configuration); final Map<String, String> properties = new HashMap<>(); properties.put("useNameQualifier", "true"); properties.put("forceAuth", "true"); properties.put("passive", "true"); properties.put("nameIdPolicyFormat", "testPolicyFormat"); final SAML2ClientConfigurationDecorator saml2ConfigurationDecorator = new SAML2ClientConfigurationDecorator(); saml2ConfigurationDecorator.decorateClients(Collections.singletonList(client), properties); assertTrue(saml2Configuration.isUseNameQualifier()); assertTrue(saml2Configuration.isForceAuth()); assertTrue(saml2Configuration.isPassive()); assertEquals("testPolicyFormat", saml2Configuration.getNameIdPolicyFormat()); }