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