@Test
public void testPutRoleSystemMetaThrowException() {

    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    RoleSystemMeta rsm = new RoleSystemMeta();
    rsm.setAuditEnabled(false);
    try {
        zmsImpl.putRoleSystemMeta(mockDomRsrcCtx, "rolesystemmetadom1", "role1", "auditenabled", null, rsm);
        fail("notfounderror not thrown.");
    } catch (ResourceException e) {
        assertEquals(404, e.getCode());
    }
}