}
public void testBuildPartitionConfigurations ()
throws DirectoryServerException, EmbeddingLDAPException {
PartitionInfo info = this.configurationBuilder.getPartitionConfigurations();
assertEquals(info.getPartitionId(), "tenant0");
assertEquals(info.getRealm(), "WSO2.ORG");
assertEquals(info.isKdcEnabled(), true);
assertEquals(info.getPartitionKdcPassword(), "sunday");
assertEquals(info.getLdapServerPrinciplePassword(), "wendesday");
//assertEquals(info.getAdminDomainName(), "uid=myadmin,ou=Users,dc=wso2,dc=org");
assertEquals(info.getPreferredDomainComponent(), "wso2");
assertEquals(info.getRootDN(), "dc=wso2,dc=org");
AdminInfo admin = info.getPartitionAdministrator();
assertNotNull(admin);
//assertEquals(admin.getAdminUID(), "myadmin");
assertEquals(admin.getAdminCommonName(), "me");
assertEquals(admin.getAdminLastName(), "admin");