CommentReader extends CommentMapper { protected boolean isComment() { return this.trim.startsWith("#"); } protected  CommentReader(final YamlConfigurationOptions options, final Reader reader);   }
@Test void isComment() 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); commentReader.nextLine(); final boolean comment = commentReader.isComment(); MatcherAssert.assertThat( "The tex is not a comment!", comment, new IsTrue() ); }