Mocking javadoc and tests