METHOD_0 ( ) { javax . IDENT_0 . IDENT_1 IDENT_2 = mock ( javax . IDENT_0 . IDENT_1 . class ) ; javax . IDENT_0 . IDENT_3 writer = mock ( javax . IDENT_0 . IDENT_3 . class ) ; javax . IDENT_0 . spi . IDENT_4 spi = mock ( javax . IDENT_0 . spi . IDENT_4 . class ) ; when ( IDENT_2 . METHOD_1 ( ) ) . thenReturn ( true ) ; when ( IDENT_2 . METHOD_2 ( ) ) . thenReturn ( null ) ; when ( writer . METHOD_3 ( ) ) . thenReturn ( IDENT_2 ) ; when ( writer . METHOD_4 ( ) ) . thenReturn ( spi ) ; when ( spi . METHOD_5 ( ) ) . thenReturn ( new java . lang . String [ ] { "foo" , STRING_0 } ) ; when ( spi . METHOD_6 ( ) ) . thenReturn ( new java . lang . String [ ] { "foo" , STRING_0 } ) ; when ( spi . METHOD_7 ( ) ) . thenReturn ( writer ) ; when ( spi . METHOD_7 ( METHOD_8 ( ) ) ) . thenReturn ( writer ) ; javax . IDENT_0 . spi . IDENT_5 . METHOD_9 ( ) . METHOD_10 ( spi ) ; java . io . File IDENT_6 = new java . io . File ( net . IDENT_7 . IDENT_8 . IDENT_9 . io . IDENT_10 . IDENT_11 , STRING_1 ) ; IDENT_6 . METHOD_11 ( ) ; java . awt . image . IDENT_12 IDENT_13 = new java . awt . image . METHOD_12 ( 100 , 100 , java . awt . image . METHOD_12 . IDENT_14 ) ; net . IDENT_7 . IDENT_8 . IDENT_15 param = mock ( net . IDENT_7 . IDENT_8 . IDENT_15 . class ) ; when ( param . METHOD_13 ( ) ) . thenReturn ( FLOAT_0 ) ; when ( param . METHOD_14 ( ) ) . thenReturn ( IDENT_15 . IDENT_16 ) ; net . IDENT_7 . IDENT_8 . IDENT_9 . io . IDENT_17 IDENT_18 = new net . IDENT_7 . IDENT_8 . IDENT_9 . io . METHOD_15 ( IDENT_6 ) ; IDENT_18 . METHOD_16 ( param ) ; IDENT_18 . write ( IDENT_13 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_2 , METHOD_17 ( ) ) . METHOD_18 ( IDENT_1 . IDENT_19 ) ; verify ( IDENT_2 , METHOD_19 ( ) ) . METHOD_20 ( anyString ( ) ) ; verify ( IDENT_2 , METHOD_17 ( ) ) . METHOD_21 ( FLOAT_0 ) ; verify ( param , METHOD_17 ( ) ) . METHOD_13 ( ) ; verify ( param , METHOD_17 ( ) ) . METHOD_14 ( ) ; javax . IDENT_0 . spi . IDENT_5 . METHOD_9 ( ) . METHOD_22 ( spi ) ; } METHOD_23 ( ) { if ( ! ( IDENT_20 ) ) { throw new java . lang . IllegalStateException ( STRING_2 ) ; } return IDENT_21 ; }
org . junit . Assert . assertEquals ( IDENT_6 , IDENT_18 . METHOD_23 ( ) )