@Test
public void testPutGroupReview() {

    final String domainName = "put-group-review";
    final String groupName = "group1";
    ZMSClient client = createClient(systemAdminUser);
    ZMSRDLGeneratedClient c = Mockito.mock(ZMSRDLGeneratedClient.class);
    client.setZMSRDLGeneratedClient(c);
    Mockito.when(c.putGroupReview(anyString(), anyString(), anyString(), any(Group.class)))
            .thenThrow(new ResourceException(403))
            .thenThrow(new NullPointerException());
    Group role = new Group();
    try {
        client.putGroupReview(domainName, groupName, AUDIT_REF, role);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 403);
    }
    try {
        client.putGroupReview(domainName, groupName, AUDIT_REF, role);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
}