@Test
public void testPutGroupMetaThrowException() {

    final String domainName = "put-group-meta-exc";
    final String groupName = "group1";
    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    GroupMeta rm = new GroupMeta();
    rm.setSelfServe(false);
    try {
        zmsImpl.putGroupMeta(mockDomRsrcCtx, domainName, groupName, auditRef, rm);
        fail("notfounderror not thrown.");
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), ResourceException.NOT_FOUND);
    }
}