METHOD_0 ( ) { org . camunda . bpm . engine . rest . File file = METHOD_1 ( STRING_0 ) ; when ( IDENT_0 . METHOD_2 ( IDENT_1 . IDENT_2 ) . METHOD_3 ( ) ) . thenReturn ( null ) ; when ( IDENT_0 . METHOD_4 ( IDENT_1 . IDENT_2 ) ) . thenReturn ( new org . camunda . bpm . engine . rest . METHOD_5 ( file ) ) ; byte [ ] actual = io . IDENT_3 . IDENT_4 . METHOD_6 ( ) . METHOD_7 ( STRING_1 , IDENT_1 . IDENT_2 ) . expect ( ) . METHOD_8 ( Status . IDENT_5 . getStatusCode ( ) ) . METHOD_9 ( STRING_2 ) . header ( STRING_3 , ( STRING_4 + null ) ) . when ( ) . get ( org . camunda . bpm . engine . rest . IDENT_6 . IDENT_7 ) . METHOD_10 ( ) . METHOD_11 ( ) ; verify ( IDENT_0 ) . METHOD_4 ( IDENT_1 . IDENT_2 ) ; byte [ ] expected = org . camunda . bpm . engine . impl . util . IDENT_8 . METHOD_12 ( new org . camunda . bpm . engine . rest . METHOD_5 ( file ) , STRING_5 ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( java . io . InputStream , java . lang . String ) { java . io . ByteArrayOutputStream IDENT_9 = new java . io . ByteArrayOutputStream ( ) ; byte [ ] buffer = new byte [ 16 * INT_0 ] ; try { int IDENT_10 = IDENT_11 . read ( buffer ) ; while ( IDENT_10 != ( - 1 ) ) { IDENT_9 . write ( buffer , 0 , IDENT_10 ) ; IDENT_10 = IDENT_11 . read ( buffer ) ; } } catch ( java . lang . Exception e ) { throw org . camunda . bpm . engine . impl . util . IDENT_8 . LOG . METHOD_13 ( IDENT_12 , e ) ; } return IDENT_9 . toByteArray ( ) ; }
org . junit . Assert . assertArrayEquals ( expected , actual )