@Test
public void testGetAWSCredentialsProvider() {

    ZTSClientMock client = new ZTSClientMock("http://localhost:40888");
    try {
        client.getAWSCredentialProvider("domain", "role");
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
    try {
        client.getAWSCredentialProvider("domain", "role", "id", 100, 300);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
    try {
        client.getAWSCredentialProvider("domain", "role", "id", null, null);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 400);
    }
}