YamlConfigurationOptions extends FileConfigurationOptions { @Override public YamlConfigurationOptions copyDefaults(final boolean value) { super.copyDefaults(value); return this; } 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 copyDefaults() { final YamlConfiguration configuration = new YamlConfiguration(); final YamlConfigurationOptions options = new YamlConfigurationOptions(configuration); options.copyDefaults(true); MatcherAssert.assertThat( "Couldn't set copy default!", options.copyDefaults(), new IsTrue() ); options.copyDefaults(false); MatcherAssert.assertThat( "Couldn't set copy default!", options.copyDefaults(), new IsNot<>(new IsTrue()) ); }