ItemDocumentationSupport extends BaseDocumentation { public boolean hasItemDocumentation() { return getItemDocumentationId() != null; } ItemDocumentationSupport();  ItemDocumentationSupport(String id, Description description); boolean hasItemDocumentation(); String getItemDocumentationId(); ItemDocumentation getItemDocumentation(); void setItemDocumentation(ItemDocumentation itemDocumentation);  }
@Test public void testHasItemDocumentation() { assertFalse(support.hasItemDocumentation()); support.setItemDocumentation(itemDocumentation); assertFalse(support.hasItemDocumentation()); itemDocumentation.setId("foo"); assertTrue(support.hasItemDocumentation()); }