@Test
public void testAdd()
{

    FunctionDocumentation fd = new FunctionDocumentation();
    fd.setGroups(listOfGroups);
    // Should not be added since it's a group member
    assertFalse(fd.add(iDoc2));
    // Should be added since it's NOT a group member
    assertTrue(fd.add(iDoc1));
    assertEquals(1, fd.getFields().size());
    assertTrue(fd.getFields().contains(iDoc1));
}