YamlConfigurationOptions extends FileConfigurationOptions { @Override public YamlConfiguration configuration() { return (YamlConfiguration) super.configuration(); } protected  YamlConfigurationOptions(final YamlConfiguration configuration); @Override YamlConfiguration configuration(); @Override YamlConfigurationOptions copyDefaults(final boolean value); @Override YamlConfigurationOptions pathSeparator(final char value); @Override YamlConfigurationOptions header(final String value); @Override YamlConfigurationOptions copyHeader(final boolean value); int indent(); YamlConfigurationOptions indent(final int value); @Override boolean equals(Object o); @Override int hashCode();  }
@Test void configuration() { final YamlConfiguration configuration = new YamlConfiguration(); final YamlConfigurationOptions options = new YamlConfigurationOptions(configuration); MatcherAssert.assertThat( "The configuration is different!", options.configuration(), new IsEqual<>(configuration) ); }