FunctionDocumentation extends BaseDocumentation { public boolean hasDisplayName() { return this.displayName != null; } FunctionDocumentation(); boolean add(ItemDocumentation itemDocumentation); boolean isGroupMember(ItemDocumentation itemDocumentation); String getDisplayName(); SortedSet<ItemDocumentation> getFields(); boolean hasDisplayName(); void setDisplayName(String displayName); void setFields(SortedSet<ItemDocumentation> fields); List<GroupDocumentation> getGroups(); void setGroups(List<GroupDocumentation> groups); @Override String toString();  }
@Test public void testHasDisplayName() { FunctionDocumentation fd = new FunctionDocumentation(); assertFalse(fd.hasDisplayName()); fd.setDisplayName("xxx"); assertTrue(fd.hasDisplayName()); }