@Test
public void testPutTenantInvalidObject() {

    Tenancy tenant = new Tenancy().setDomain("sports").setService("athenz.provider");
    try {
        zms.putTenant(mockDomRsrcCtx, "athenz", "provider", "weather", auditRef, tenant);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
}