@Test
public void testGetDomainDataCheck() {

    ZMSClient client = createClient(systemAdminUser);
    ZMSRDLGeneratedClient c = Mockito.mock(ZMSRDLGeneratedClient.class);
    client.setZMSRDLGeneratedClient(c);
    DomainDataCheck checkdom1 = Mockito.mock(DomainDataCheck.class);
    Mockito.when(c.getDomainDataCheck("domain1")).thenReturn(checkdom1).thenThrow(new ZMSClientException(400,"Audit reference required"));
    client.getDomainDataCheck("domain1");
    try {
        client.getDomainDataCheck("domain1");
        fail();
    } catch (ZMSClientException ex) {
        assertTrue(true);
    }
    try {
        Mockito.when(c.getDomainDataCheck("domain2")).thenThrow(new NullPointerException());
        client.getDomainDataCheck("domain2");
        fail();
    } catch (ZMSClientException ex) {
        assertTrue(true);
    }
}