METHOD_0 ( ) { org . IDENT_0 . commons . xml . IDENT_1 xml = new org . IDENT_0 . commons . xml . METHOD_1 ( org . IDENT_0 . metadata . IDENT_2 . IDENT_3 . IDENT_4 ) ; org . apache . IDENT_5 . IDENT_6 . IDENT_7 IDENT_8 = xml . METHOD_2 ( ) ; byte [ ] actual = METHOD_3 ( IDENT_8 , null ) ; byte [ ] expected = org . apache . commons . io . IDENT_9 . toByteArray ( org . IDENT_0 . metadata . IDENT_2 . IDENT_3 . class . getResourceAsStream ( STRING_0 ) ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . apache . IDENT_5 . IDENT_6 . IDENT_7 , java . util . List ) { java . io . ByteArrayOutputStream IDENT_10 = new java . io . ByteArrayOutputStream ( ) ; javax . xml . stream . IDENT_11 writer = javax . xml . stream . IDENT_12 . newInstance ( ) . METHOD_4 ( IDENT_10 ) ; if ( IDENT_13 != null ) { writer = new org . IDENT_0 . commons . xml . IDENT_14 . METHOD_5 ( writer , IDENT_13 ) ; } IDENT_8 . serialize ( writer ) ; writer . close ( ) ; return IDENT_10 . toByteArray ( ) ; }
org . junit . Assert . assertArrayEquals ( expected , actual )