@Test
public void testIsAllowedSystemMetaDelete(){

    TestAuditLogger alogger = new TestAuditLogger();
    System.setProperty(ZMSConsts.ZMS_PROP_PRODUCT_ID_SUPPORT, "true");
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    assertFalse(zmsImpl.isAllowedSystemMetaDelete(mockDomRsrcCtx.principal(), "mockdom1", "auditenabled", "role"));
    setupPrincipalRoleSystemMetaDelete(zmsImpl, mockDomRsrcCtx.principal().getFullName(), "mockdom1", "auditenabled");
    assertTrue(zmsImpl.isAllowedSystemMetaDelete(mockDomRsrcCtx.principal(), "mockdom1", "auditenabled", "role"));
    cleanupPrincipalRoleSystemMetaDelete(zmsImpl);
    System.clearProperty(ZMSConsts.ZMS_PROP_PRODUCT_ID_SUPPORT);
}