    @Test
    void loadAndSaveExecutesPostLoadHook() {

        class A extends YamlConfiguration {
            int i = 0;

            protected A() { super(configPath, YamlProperties.DEFAULT); }

            @Override
            protected void postLoad() {
                i++;
            }
        }

        A a = new A();
        a.loadAndSave();
        assertThat(a.i, is(1));
    }