Assert.assertNotNull(templates);
Assert.assertEquals(4, templates.size());
// get the 2nd one and validate it
LdapSchemaTemplateDTO template = templates.get(3);
Assert.assertEquals("Generic Ldap Server", template.getName());
Assert.assertEquals("mail", template.getUserAndGroupConfig().getEmailAddressAttribute());
Assert.assertEquals(null, template.getUserAndGroupConfig().getGroupBaseDn());
Assert.assertEquals(null, template.getUserAndGroupConfig().getGroupIdAttribute());
Assert.assertEquals(null, template.getUserAndGroupConfig().getGroupMemberAttribute());
Assert.assertEquals(null, template.getUserAndGroupConfig().getGroupMemberFormat());
Assert.assertEquals(null, template.getUserAndGroupConfig().getGroupObjectClass());
Assert.assertEquals(null, template.getUserAndGroupConfig().getUserBaseDn());
Assert.assertEquals("uid", template.getUserAndGroupConfig().getUserIdAttribute());
Assert.assertEquals("memberOf", template.getUserAndGroupConfig().getUserMemberOfAttribute());
Assert.assertEquals("inetOrgPerson", template.getUserAndGroupConfig().getUserObjectClass());
Assert.assertEquals("userPassword", template.getUserAndGroupConfig().getUserPasswordAttribute());
Assert.assertEquals("cn", template.getUserAndGroupConfig().getUserRealNameAttribute());
Assert.assertEquals(false, template.getUserAndGroupConfig().isGroupSubtree());
Assert.assertEquals(true, template.getUserAndGroupConfig().isLdapGroupsAsRoles());
Assert.assertEquals(false, template.getUserAndGroupConfig().isUserSubtree());
}