METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . serializer . IDENT_2 serializer = mock ( org . IDENT_0 . IDENT_1 . serializer . IDENT_2 . class ) ; when ( serializer . serialize ( STRING_0 , org . IDENT_0 . IDENT_1 . util . IDENT_3 ) ) . thenReturn ( STRING_1 ) ; java . lang . String actual = org . IDENT_0 . IDENT_1 . util . IDENT_4 . serialize ( serializer , STRING_0 , org . IDENT_0 . IDENT_1 . util . IDENT_3 ) ; "<AssertPlaceHolder>" ; } serialize ( org . IDENT_0 . IDENT_1 . serializer . IDENT_5 , T , java . nio . IDENT_6 . IDENT_7 ) { if ( serializer instanceof org . IDENT_0 . IDENT_1 . serializer . IDENT_2 ) { return ( ( org . IDENT_0 . IDENT_1 . serializer . IDENT_2 < T > ) ( serializer ) ) . serialize ( value , IDENT_6 ) ; } else { java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; serializer . serialize ( value , IDENT_6 , out ) ; return new java . lang . String ( out . toByteArray ( ) , IDENT_6 ) ; } }
org . junit . Assert . assertEquals ( STRING_1 , actual )