DataServiceVisitorJsBuilder extends AbstractDataServiceVisitor { String getMethodComment(ExecutableElement methodElement) { return environment.getElementUtils().getDocComment(methodElement); } DataServiceVisitorJsBuilder(ProcessingEnvironment environment, FwkWriter fwk);   }
@Test public void getMethodCommentTest() { System.out.println("getMethodComment"); ExecutableElement methodElement = mock(ExecutableElement.class); when(elementUtils.getDocComment(eq(methodElement))).thenReturn("DOC"); String result = instance.getMethodComment(methodElement); assertThat(result).isEqualTo("DOC"); }