### Question:
CodeReviewCommentDto { public Map<String, String> getCommentAttributes() { Map<String, String> properties = new HashMap<>(); properties.put(LINE_NUMBER_PROPERTY_NAME, String.valueOf(lineNumber)); return properties; } CodeReviewCommentDto();  CodeReviewCommentDto(PostComment comment); long getId(); void setId(long id); int getLineNumber(); void setLineNumber(int lineNumber); String getBody(); void setBody(String body); long getAuthorId(); void setAuthorId(long authorId); String getAuthorUsername(); void setAuthorUsername(String authorUsername); long getEditorId(); void setEditorId(long editorId); String getEditorUsername(); void setEditorUsername(String editorUsername); DateTime getModificationDate(); void setModificationDate(DateTime modificationDate); Map<String, String> getCommentAttributes(); static final String LINE_NUMBER_PROPERTY_NAME; }### Answer:
@Test public void testGetCommentProperties() { PostComment comment = createComment(); comment.putAttribute(CodeReviewCommentDto.LINE_NUMBER_PROPERTY_NAME, "1"); CodeReviewCommentDto dto = new CodeReviewCommentDto(comment); Map<String, String> properties = dto.getCommentAttributes(); assertEquals(properties.size(), 1); assertEquals(properties.get(CodeReviewCommentDto.LINE_NUMBER_PROPERTY_NAME), "1"); }