Fix CommunityService java tests

Fix CommunityService java tests
Merge pull request #1481 from CarlosManias/java-refactor-fix-communityservice-tests

Java refactor fix communityservice tests