@Test
public void testDeleteTopLevelDomain() {

    TopLevelDomain dom1 = createTopLevelDomainObject("DelTopDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Domain resDom1 = zms.getDomain(mockDomRsrcCtx, "DelTopDom1");
    assertNotNull(resDom1);
    zms.deleteTopLevelDomain(mockDomRsrcCtx, "DelTopDom1", auditRef);
    // we should get a forbidden exception since the domain
    // no longer exists
    try {
        zms.getDomain(mockDomRsrcCtx, "DelTopDom1");
        fail();
    } catch (Exception ex) {
        assertTrue(true);
    }
}