@Test
public void testDeleteRoleThrowException() {

    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    String domainName = "DomainName1";
    String roleName = "RoleName1";
    try {
        zmsImpl.deleteRole(mockDomRsrcCtx,domainName, roleName, auditRef);
        fail("notfounderror not thrown.");
    } catch (ResourceException e) {
        assertEquals(e.getCode(), 404);
    }
}