@Test
public void testSetFields()
{

    FunctionDocumentation fd = new FunctionDocumentation();
    fd.setGroups(listOfGroups);
    this.sortedSetOfItemDocs.add(iDoc1);
    this.sortedSetOfItemDocs.add(iDoc2);
    fd.setFields(sortedSetOfItemDocs);
    assertEquals(1, fd.getFields().size());
    assertTrue(fd.getFields().contains(iDoc1));
}