BaseDocumentation implements Comparable<BaseDocumentation> { public boolean isDocumented() { return this.id != null; } BaseDocumentation();  BaseDocumentation(String id, Description description); boolean isDocumented(); boolean hasText(); String getId(); Description getDescription(); void setId(String id); void setDescription(Description description); String summarize(int length); String joinDescriptionText(String between); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(BaseDocumentation o);  }
@Test public void testIsDocumented() { BaseDocumentation bd = new BaseDocumentation(); assertFalse(bd.isDocumented()); bd.setId("xxx"); assertTrue(bd.isDocumented()); }