void executeBadConstructor(final int w, final int h) {
        try {
            final ImageBuilder iBuilder = new ImageBuilder(w, h, true);
            fail("Failed to detect bad constructor " + w + ", " + h);
        } catch (final RasterFormatException rfe) {
            // success, no action required
        }
    }
Provides unit tests for the ImageBuilder class.
src/test/java/org/apache/commons/imaging/common/ImageBuilderTest.java