@Override
    public byte readByte(@Nonnull String fieldName) throws IOException {
        FieldDefinition fd = cd.getField(fieldName);
        if (fd == null) {
            return 0;
        }
        validateTypeCompatibility(fd, BYTE);
        return super.readByte(fieldName);
    }
@Test
    public void testReadByte() throws Exception {
        byte aByte = reader.readByte("byte");

        assertEquals(1, aByte);
        assertEquals(0, reader.readByte("NO SUCH FIELD"));
    }