@Test
public void testQueryWithUserAvailableDeployments() {

    dataSetLookup = spy(new DataSetLookup());
    String deploymentId1 = "deployment1";
    String deploymentId2 = "deployment2";
    when(deploymentRolesManager.getDeploymentsForUser(identityProvider)).thenReturn( Arrays.asList(deploymentId1,deploymentId2));
    preprocessor.preprocess(dataSetLookup);
    assertEquals("DEPLOYMENTID in deployment1, deployment2",
                 dataSetLookup.getFirstFilterOp().getColumnFilterList().get(0).toString());
}