@Test
public void testSetUser() {

    String role1 = "role1";
    String role2 = "role2";
    String userId = "userId";
    when(userGroupCallback.getGroupsForUser(userId)).thenReturn(Arrays.asList(role1,
                                                                              role2));
    when(identityProvider.getName()).thenReturn(userId);
    potOwnerTasksPreprocessor.preprocess(dataSetLookup);
    assertEquals("((ENTITY_ID is_null  OR ENTITY_ID != " + userId + ") AND ((ID = " + role1 + ", " + role2 + ", " + userId + " AND (ACTUALOWNER =  OR ACTUALOWNER is_null )) OR ACTUALOWNER = " + userId + "))",
            dataSetLookup.getFirstFilterOp().getColumnFilterList().get(0).toString());
}