@Test
public void testGetDomainTemplateListInvalid() {

    
    try {
        zms.getDomainTemplateList(mockDomRsrcCtx, "invalid_domain name");
        fail();
    } catch (ResourceException ex) {
        assertEquals(400, ex.getCode());
    }
    
    try {
        zms.getDomainTemplateList(mockDomRsrcCtx, "not_found_domain_name");
        fail();
    } catch (ResourceException ex) {
        assertEquals(404, ex.getCode());
    }
}