@Test
public void getCommentFromDbComment() throws Exception {

    final String entityId = "com.axway.test:1.0.0::jar";
    final String entityType = "DbArtifact";
    DbComment dbComment = new DbComment();
    dbComment.setEntityId(entityId);
    dbComment.setEntityType(entityType);
    dbComment.setDbCommentText("test comment");
    dbComment.setDbCommentedBy("testUser");
    dbComment.setDbCreatedDateTime(new Date());
    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    final ModelMapper modelMapper = new ModelMapper(repositoryHandler);
    final Comment comment = modelMapper.getComment(dbComment);
    assertEquals(entityId, comment.getEntityId());
    assertEquals(entityType, comment.getEntityType());
    assertEquals("test comment", comment.getCommentText());
    assertEquals("testUser", comment.getCommentedBy());
}