@Test
public void testLookupDomainByAccount() {

    
    String domainName = "lookupdomainaccount";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    dom1.setAccount("1234");
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    DomainList list = zms.dbService.lookupDomainByAccount("1234");
    assertNotNull(list.getNames());
    assertEquals(list.getNames().size(), 1);
    assertEquals(list.getNames().get(0), domainName);
    list = zms.dbService.lookupDomainById("1234", 0);
    assertNotNull(list.getNames());
    assertEquals(list.getNames().size(), 1);
    assertEquals(list.getNames().get(0), domainName);
    
    list = zms.dbService.lookupDomainByAccount("1235");
    assertNull(list.getNames());
    list = zms.dbService.lookupDomainById("1235", 0);
    assertNull(list.getNames());
    
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}