@@ -0,0 +1,2375 @@
+package reciter.controller;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.junit.MockitoJUnitRunner;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class ReCiterControllerTest %7B%0A%0A    @Test%0A    public final void testReCiterFeatureGeneratorGroupFilters() %7B%0A        List%3CString%3E identityInstitutions = Arrays.asList(%22Weill Cornell Medical College%22,%0A                %22New York-Presbyterian Hospital%22, %22Hamad Medical Corporation%22);%0A        List%3CString%3E filterInstitution = Arrays.asList(%22New York-Presbyterian Hospital%22, %22MSKCC%22);%0A        List%3CString%3E identityOrgUnits = Arrays.asList(%22Pediatrics%22, %22General Internal Medicine (Medicine)%22,%0A                %22Doctor of Medicine%22);%0A        List%3CString%3E filterOrgUnits = Arrays.asList(%22Pediatrics%22);%0A        List%3CString%3E identityPersonTypes = Arrays.asList(%22academic%22, %22affiliate-nyp-epic%22, %22affiliate%22);%0A        List%3CString%3E filterPersonTypes = Arrays.asList(%22affiliate-nyp-epic%22);%0A%0A        // Valid filters match%0A        assertFalse(Collections.disjoint(identityInstitutions, filterInstitution));%0A        assertFalse(Collections.disjoint(identityOrgUnits, filterOrgUnits));%0A        assertFalse(Collections.disjoint(identityPersonTypes, filterPersonTypes));%0A%0A        if(identityPersonTypes != null%0A                &&%0A                !identityPersonTypes.isEmpty() && !Collections.disjoint(identityPersonTypes, filterPersonTypes)%0A                &&%0A                identityInstitutions != null%0A                &&%0A                !identityInstitutions.isEmpty()%0A                &&%0A                !Collections.disjoint(identityInstitutions, filterInstitution)%0A                &&%0A                identityOrgUnits != null%0A                &&%0A                !identityOrgUnits.isEmpty()%0A                &&%0A                !Collections.disjoint(identityOrgUnits, filterOrgUnits)) %7B%0A            System.out.println(%22Filter for both orgunits and personType%22);%0A        %7D%0A%0A        // No match filter%0A        identityOrgUnits = Arrays.asList(%22Pediatrics%22, %22General Internal Medicine (Medicine)%22, %22Doctor of Medicine%22);%0A        filterOrgUnits = Arrays.asList(%22Neurology%22);%0A        assertTrue(Collections.disjoint(identityOrgUnits, filterOrgUnits));%0A    %7D%0A%7D%0A

add test case for group view for filter