@Override
    public boolean readBoolean(@Nonnull String fieldName) throws IOException {
        FieldDefinition fd = cd.getField(fieldName);
        if (fd == null) {
            return false;
        }
        validateTypeCompatibility(fd, BOOLEAN);
        return super.readBoolean(fieldName);
    }
@Test
    public void testReadBoolean() throws Exception {
        boolean aBoolean = reader.readBoolean("boolean");

        assertTrue(aBoolean);
        assertFalse(reader.readBoolean("NO SUCH FIELD"));
    }