@Test
public void testPutDomainMetaThrowException() {

    TestAuditLogger alogger = new TestAuditLogger();
    ZMSImpl zmsImpl = getZmsImpl(alogger);
    String domName = "wrongDomainName";
    DomainMeta meta = new DomainMeta();
    meta.setYpmId(getRandomProductId());
    try {
        zmsImpl.putDomainMeta(mockDomRsrcCtx, domName, auditRef, meta);
        fail("notfounderror not thrown.");
    } catch (ResourceException e) {
        assertEquals(404, e.getCode());
    }
}