@Test
public void testCreateSubDomain() {

    TopLevelDomain dom1 = createTopLevelDomainObject("AddSubDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    SubDomain dom2 = createSubDomainObject("AddSubDom2", "AddSubDom1",
            "Test Domain2", null, adminUser);
    Domain resDom1 = zms.postSubDomain(mockDomRsrcCtx, "AddSubDom1", auditRef, dom2);
    assertNotNull(resDom1);
    Domain resDom2 = zms.getDomain(mockDomRsrcCtx, "AddSubDom1.AddSubDom2");
    assertNotNull(resDom2);
    assertEquals(dom2.getOrg(), "testorg");
    assertFalse(resDom2.getAuditEnabled());
    zms.deleteSubDomain(mockDomRsrcCtx, "AddSubDom1", "AddSubDom2", auditRef);
    zms.deleteTopLevelDomain(mockDomRsrcCtx, "AddSubDom1", auditRef);
}