@Test(expected = IllegalArgumentException.class)
public void testCreateInvalidSecurityType() throws Exception {

  Map<String, Object> reuqestMap = new HashMap<>();
  Map<String, Object> security = new HashMap<>();
  security.put(SecurityConfigurationFactory.TYPE_PROPERTY_ID, "INVALID_SECURITY_TYPE");
  reuqestMap.put(SecurityConfigurationFactory.SECURITY_PROPERTY_ID, security);
  SecurityConfiguration securityConfiguration = testSubject.createSecurityConfigurationFromRequest(reuqestMap, false);
  assertTrue(securityConfiguration.getType() == SecurityType.KERBEROS);
}