@Test
public void testGetFieldIds_withComparator()
{

    assertEquals(Arrays.asList("fieldComposite","fieldFive","fieldFour","fieldOne","fieldThree","fieldTwo"), workAreaWithFilters.getFieldIds(Field.NAME_SORT,true, true));
    assertEquals(Arrays.asList("fieldFive"), workAreaWithFilters.getFieldIds(Field.NAME_SORT,true, false));
    assertEquals(Arrays.asList("fieldComposite","fieldFive","fieldFour","fieldTwo"), workAreaWithFilters.getFieldIds(Field.NAME_SORT,false, true));
    assertEquals(Arrays.asList("fieldFive"), workAreaWithFilters.getFieldIds(Field.NAME_SORT,false, false));
}