@Test
public void testGetRole() {

    ZMSClient client = createClient(systemAdminUser);
    ZMSRDLGeneratedClient c = Mockito.mock(ZMSRDLGeneratedClient.class);
    client.setZMSRDLGeneratedClient(c);
    try {
        Mockito.when(c.getRole("domain1", "role1", true, false, false)).thenThrow(new ResourceException(400));
        client.getRole("domain1", "role1", true, false);
        fail();
    } catch (ResourceException ex) {
        assertTrue(true);
    }
}