METHOD_0 ( ) { final java . io . ByteArrayOutputStream IDENT_0 = new java . io . ByteArrayOutputStream ( ) ; final javax . xml . stream . IDENT_1 writer = javax . xml . stream . IDENT_2 . newInstance ( ) . METHOD_1 ( IDENT_0 ) ; writer . METHOD_2 ( STRING_0 ) ; org . IDENT_3 . commons . xml . IDENT_4 . METHOD_3 ( writer , STRING_1 , STRING_2 ) ; final org . IDENT_3 . IDENT_5 . metadata . IDENT_6 IDENT_7 = METHOD_4 ( ) ; IDENT_7 . METHOD_5 ( false ) ; final org . IDENT_3 . commons . IDENT_8 . metadata . IDENT_9 IDENT_10 = METHOD_6 ( ) ; final java . util . Map < java . lang . String , java . lang . String > IDENT_11 = java . util . Collections . METHOD_7 ( ) ; IDENT_12 . METHOD_8 ( writer , IDENT_7 , IDENT_10 , IDENT_11 , null , null ) ; writer . METHOD_9 ( ) ; writer . METHOD_10 ( ) ; IDENT_0 . close ( ) ; final java . io . InputStream is = org . IDENT_3 . services . IDENT_13 . controller . IDENT_14 . IDENT_15 . IDENT_16 . class . getResourceAsStream ( STRING_3 ) ; final byte [ ] expected = org . IDENT_17 . util . IDENT_18 . METHOD_11 ( is , ( - 1 ) ) ; "<AssertPlaceHolder>" ; } close ( ) { METHOD_10 ( ) ; out . close ( ) ; }
org . junit . Assert . assertArrayEquals ( expected , IDENT_0 . toByteArray ( ) )