JavadocReaderImpl implements JavadocReader { @Override public String resolveMethodComment(Class<?> javaBaseClass, final String javaMethodName) { return resolveCommentFromClassHierarchy(javaBaseClass, classJavadoc -> classJavadoc.getMethodComment(javaMethodName)); } private  JavadocReaderImpl(ObjectMapper mapper, List<File> absoluteBaseDirs); static JavadocReaderImpl createWithSystemProperty(); @Override String resolveFieldComment(Class<?> javaBaseClass, String javaFieldName); @Override String resolveFieldTag(Class<?> javaBaseClass, String javaFieldName, String tagName); @Override String resolveMethodComment(Class<?> javaBaseClass, final String javaMethodName); @Override String resolveMethodTag(Class<?> javaBaseClass, final String javaMethodName,
            final String tagName); @Override String resolveMethodParameterComment(Class<?> javaBaseClass, final String javaMethodName,
            final String javaParameterName);  }
@Test public void resolveMethodComment() { JavadocReader javadocReader = JavadocReaderImpl.createWith(SOURCE_DIR); String comment = javadocReader.resolveMethodComment(SimpleType.class, "simpleMethod"); assertThat(comment, equalTo("Simple method comment")); }