METHOD_0 ( ) { org . apache . IDENT_0 . image . loader . IDENT_1 is = org . apache . IDENT_2 . render . IDENT_3 . METHOD_1 ( ) ; java . awt . image . IDENT_4 IDENT_5 = mock ( java . awt . image . IDENT_4 . class ) ; org . apache . IDENT_0 . image . loader . impl . IDENT_6 IDENT_7 = mock ( org . apache . IDENT_0 . image . loader . impl . IDENT_6 . class ) ; when ( IDENT_7 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_7 . METHOD_3 ( ) ) . thenReturn ( is ) ; org . apache . IDENT_2 . render . IDENT_8 . IDENT_9 IDENT_10 = new org . apache . IDENT_2 . render . IDENT_8 . METHOD_4 ( IDENT_7 ) ; java . io . ByteArrayOutputStream IDENT_11 = new java . io . ByteArrayOutputStream ( ) ; byte [ ] data = org . apache . IDENT_2 . render . IDENT_3 . METHOD_5 ( INT_0 , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) ) ; java . io . ByteArrayInputStream IDENT_12 = new java . io . ByteArrayInputStream ( data ) ; when ( IDENT_7 . METHOD_6 ( ) ) . thenReturn ( IDENT_12 ) ; IDENT_10 . METHOD_7 ( IDENT_11 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . io . IDENT_13 ) { IDENT_14 . METHOD_7 ( out ) ; }
org . junit . Assert . assertArrayEquals ( data , IDENT_11 . toByteArray ( ) )