// add comments
UserCommentsManager ucm = service.getUserCommentsManager();
UserCommentsManager ucm2 = serviceWithSubPath.getUserCommentsManager();
UserComment comment1 = ucm.createComment(ident1, "Hello World");
UserComment comment2 = ucm2.createComment(ident1, "Hello World with subpath");
// count must be 1 now. count without subpath should not include the results with subpath
assertEquals(Long.valueOf(1), service.getUserCommentsManager().countComments());
assertEquals(Long.valueOf(1), serviceWithSubPath.getUserCommentsManager().countComments());
//
UserComment comment3 = ucm.createComment(ident2, "Hello World");
UserComment comment4 = ucm2.createComment(ident2, "Hello World with subpath");
assertEquals(Long.valueOf(2), service.getUserCommentsManager().countComments());
assertEquals(Long.valueOf(2), serviceWithSubPath.getUserCommentsManager().countComments());
// Same with get method
List<UserComment> commentList = ucm.getComments();
assertEquals(2, commentList.size());