adding java-doc plugin to pom.xml
merging pom.xml
fixing test case.