### Question:
CobolInlineCommentEntriesNormalizerImpl implements CobolLineReWriter { @Override @Nonnull public List<CobolLine> processLines(@Nonnull List<CobolLine> lines) { return lines.stream().map(this::normalizeLine).collect(toList()); }  @Override @Nonnull List<CobolLine> processLines(@Nonnull List<CobolLine> lines);  }### Answer:
@Test void testNotMatchingLineIsNotChanged() { CobolLine normalLine = new CobolLine(); normalLine.setSequenceArea(BLANK_SEQUENCE_AREA); normalLine.setIndicatorArea(WS); normalLine.setContentAreaA("MOVE"); normalLine.setContentAreaB(" A TO B"); CobolInlineCommentEntriesNormalizerImpl normalizer = new CobolInlineCommentEntriesNormalizerImpl(); List<CobolLine> actual = normalizer.processLines(singletonList(normalLine)); assertFalse(actual.isEmpty()); assertEquals(normalLine, actual.get(0)); }
@Test void testLineWithCommentAndSpaceIsNotChanged() { CobolLine commentLine = new CobolLine(); commentLine.setSequenceArea(BLANK_SEQUENCE_AREA); commentLine.setIndicatorArea(WS); commentLine.setContentAreaA(EMPTY_CONTENT_AREA_A); commentLine.setContentAreaB(" AUTHOR.*> USER."); CobolInlineCommentEntriesNormalizerImpl normalizer = new CobolInlineCommentEntriesNormalizerImpl(); List<CobolLine> actual = normalizer.processLines(singletonList(commentLine)); assertFalse(actual.isEmpty()); assertEquals(commentLine, actual.get(0)); }
@Test void testLineWithCommentWithoutSpaceIsChanged() { CobolLine commentLine = new CobolLine(); commentLine.setSequenceArea(BLANK_SEQUENCE_AREA); commentLine.setIndicatorArea(WS); commentLine.setContentAreaA(EMPTY_CONTENT_AREA_A); commentLine.setContentAreaB(" AUTHOR.*>USER."); CobolLine expected = new CobolLine(); expected.setSequenceArea(BLANK_SEQUENCE_AREA); expected.setIndicatorArea(WS); expected.setContentAreaA(EMPTY_CONTENT_AREA_A); expected.setContentAreaB(" AUTHOR.*> USER."); CobolInlineCommentEntriesNormalizerImpl normalizer = new CobolInlineCommentEntriesNormalizerImpl(); List<CobolLine> actual = normalizer.processLines(singletonList(commentLine)); assertFalse(actual.isEmpty()); assertEquals(expected, actual.get(0)); }