Java refactor fix communityservice tests

Java refactor fix communityservice tests