@Test
public void getCommentWithConnTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        Optional<Comment> commentOpt = manager.getComment(comment1.getResource(), conn);
        assertTrue(commentOpt.isPresent());
        Comment comment = commentOpt.get();
        assertEquals(comment1.getModel(), comment.getModel());
        verify(utilsService).optObject(eq(comment1.getResource()), any(CommentFactory.class), any(RepositoryConnection.class));
    }
}