public boolean isAllowed() {
        return get(ALLOWED, true);
    }
@Test
    public void basicTest() {
        ConfigApplyDelegate delegate = configApply -> { };
        ObjectMapper mapper = new ObjectMapper();

        TestConfig allowed = new TestConfig();
        TestConfig notAllowed = new TestConfig();

        allowed.init("enabled", "KEY", JsonNodeFactory.instance.objectNode(), mapper, delegate);

        notAllowed.init("disabled", "KEY", JsonNodeFactory.instance.objectNode(), mapper, delegate);
        notAllowed.isAllowed(false);

        assertThat(allowed.isAllowed(), is(true));
        assertThat(notAllowed.isAllowed(), is(false));

        notAllowed.isAllowed(true);
        allowed.isAllowed(false);
        assertThat(allowed.isAllowed(), is(false));
        assertThat(notAllowed.isAllowed(), is(true));
    }