METHOD_0 ( ) { java . util . ArrayList < java . lang . String > mock = METHOD_1 ( java . util . ArrayList . class ) . METHOD_2 ( STRING_0 ) . METHOD_3 ( ) . METHOD_4 ( ) ; mock = serialize ( mock ) ; expect ( mock . get ( 1 ) ) . andReturn ( "a" ) ; mock = serialize ( mock ) ; replay ( mock ) ; mock = serialize ( mock ) ; "<AssertPlaceHolder>" ; mock = serialize ( mock ) ; verify ( mock ) ; } serialize ( T ) { org . easymock . IDENT_0 . ByteArrayOutputStream IDENT_1 = new org . easymock . IDENT_0 . ByteArrayOutputStream ( ) ; org . easymock . IDENT_0 . IDENT_2 out = new org . easymock . IDENT_0 . METHOD_5 ( IDENT_1 ) ; out . METHOD_6 ( o ) ; out . close ( ) ; org . easymock . IDENT_0 . ByteArrayInputStream IDENT_3 = new org . easymock . IDENT_0 . ByteArrayInputStream ( IDENT_1 . toByteArray ( ) ) ; org . easymock . IDENT_0 . IDENT_4 in = new org . easymock . IDENT_0 . METHOD_7 ( IDENT_3 ) ; o = ( ( T ) ( in . METHOD_8 ( ) ) ) ; in . close ( ) ; return o ; }
org . junit . Assert . assertEquals ( "a" , mock . get ( 1 ) )