@Test
    void testWriteDataWithNonNull() {
        final FieldTypeRational fieldTypeRational = new FieldTypeRational(-922, "z_AX");
        final ByteOrder byteOrder = ByteOrder.nativeOrder();
        assertThrows(ImagingException.class, () -> fieldTypeRational.writeData("z_AX", byteOrder));
    }
Tests for class {@link FieldTypeRational}.

@see FieldTypeRational
src/test/java/org/apache/commons/imaging/formats/tiff/fieldtypes/FieldTypeRationalTest.java