CommentReader extends CommentMapper { protected boolean nextLine() throws IOException { this.currentLine = this.reader.readLine(); if (this.currentLine != null) { this.trim = this.currentLine.trim(); return true; } return false; } protected  CommentReader(final YamlConfigurationOptions options, final Reader reader);   }
@Test void nextLine() throws IOException { final StringReader reader = new StringReader(CommentReaderTest.COMMENT); final YamlConfiguration configuration = new YamlConfiguration(); final YamlConfigurationOptions options = new TestYamlConfigurationOptions(configuration); final CommentReader commentReader = new CommentReader(options, reader); final boolean nextLine = commentReader.nextLine(); MatcherAssert.assertThat( "The text has not a next line!", nextLine, new IsTrue() ); }