@Test
    void testWriteDataWithNull() throws ImagingException {
        final FieldTypeRational fieldTypeRational = new FieldTypeRational(9, null);
        final Double doubleOne = 2.2d;
        final byte[] byteArray = fieldTypeRational.writeData(doubleOne, null);

        assertArrayEquals(new byte[] { (byte) 11, (byte) 0, (byte) 0, (byte) 0, (byte) 5, (byte) 0, (byte) 0, (byte) 0 }, byteArray);
    }
Tests for class {@link FieldTypeRational}.

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