public boolean asBoolean() {
        checkState(type == Type.BOOLEAN, "Value is not a boolean");
        return Boolean.parseBoolean(value);
    }
@Test
    public void asBoolean() {
        ConfigProperty p = defineProperty("foo", BOOLEAN, "true", "Foo Prop");
        validate(p, "foo", BOOLEAN, "true", "true");
        assertEquals("incorrect value", true, p.asBoolean());
    }