### Question:
ITextUtil { public static boolean isPageSizeSupported( String aPageSize ) { Field[] fields = PageSize.class.getFields(); for ( Field currentField : fields ) { if ( ( currentField.getName().equalsIgnoreCase( aPageSize ) ) && ( currentField.getType().equals( Rectangle.class ) ) ) { return true; } } return false; }  static Rectangle getDefaultPageSize(); static String getPageSize( Rectangle rect ); static boolean isPageSizeSupported( String aPageSize ); static void writePdf( InputStream is, OutputStream os ); static void writeRtf( InputStream is, OutputStream os ); static void writeHtml( InputStream is, OutputStream os );  }### Answer:
@Test public void testIsPageSupported() { assertTrue( ITextUtil.isPageSizeSupported( "A0" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A1" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A2" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A3" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A4" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A5" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A6" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A7" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A8" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A9" ) ); assertTrue( ITextUtil.isPageSizeSupported( "A10" ) ); assertTrue( ITextUtil.isPageSizeSupported( "LETTER" ) ); assertTrue( ITextUtil.isPageSizeSupported( "letter" ) ); assertTrue( ITextUtil.isPageSizeSupported( "LEGAL" ) ); assertTrue( ITextUtil.isPageSizeSupported( "legal" ) ); }