@Test
public void testQueryWithoutUserAvailableDeployments() {

    dataSetLookup = spy(new DataSetLookup());
    when(deploymentRolesManager.getDeploymentsForUser(identityProvider)).thenReturn(new ArrayList<>());
    preprocessor.preprocess(dataSetLookup);
    assertEquals("TASKID = -1",
                 dataSetLookup.getFirstFilterOp().getColumnFilterList().get(0).toString());
}