@Test
public void testPutRoleMetaThrowException() {

    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    RoleMeta rm = new RoleMeta();
    rm.setSelfServe(false);
    try {
        zmsImpl.putRoleMeta(mockDomRsrcCtx, "rolemetadom1", "role1", auditRef, rm);
        fail("notfounderror not thrown.");
    } catch (ResourceException e) {
        assertEquals(404, e.getCode());
    }
}