METHOD_0 ( ) { org . IDENT_0 . serialization . IDENT_1 serializer = mock ( org . IDENT_0 . serialization . IDENT_1 . class ) ; org . IDENT_0 . serialization . IDENT_2 converter = new org . IDENT_0 . serialization . METHOD_1 ( ) ; when ( serializer . METHOD_2 ( ) ) . thenReturn ( converter ) ; final org . IDENT_0 . serialization . IDENT_3 < byte [ ] > IDENT_4 = new org . IDENT_0 . serialization . METHOD_3 ( STRING_0 . getBytes ( ) , byte [ ] . class , STRING_1 , STRING_2 ) ; when ( serializer . serialize ( STRING_0 , byte [ ] . class ) ) . thenReturn ( IDENT_4 ) ; org . IDENT_0 . serialization . IDENT_5 < byte [ ] > IDENT_6 = IDENT_7 . METHOD_4 ( serializer , byte [ ] . class ) ; org . IDENT_0 . serialization . IDENT_5 < byte [ ] > IDENT_8 = IDENT_7 . METHOD_4 ( serializer , byte [ ] . class ) ; "<AssertPlaceHolder>" ; verify ( serializer , times ( 1 ) ) . serialize ( STRING_0 , byte [ ] . class ) ; verify ( serializer ) . METHOD_2 ( ) ; METHOD_5 ( serializer ) ; } METHOD_4 ( org . IDENT_0 . serialization . IDENT_1 , java . lang . Class ) { return METHOD_6 ( ) . METHOD_4 ( serializer , IDENT_9 ) ; }
org . junit . Assert . assertSame ( IDENT_6 , IDENT_8 )