METHOD_0 ( ) { io . IDENT_0 . IDENT_1 . serialization . IDENT_2 context = mock ( io . IDENT_0 . IDENT_1 . serialization . IDENT_2 . class ) ; when ( context . METHOD_1 ( ) ) . thenReturn ( ( ( java . lang . Class ) ( io . IDENT_0 . IDENT_1 . serialization . IDENT_3 . class ) ) ) ; when ( context . getInstance ( java . util . List . class ) ) . thenReturn ( new java . util . ArrayList ( ) ) ; java . lang . String input = ( ( ( STRING_0 + ( java . lang . String . valueOf ( IDENT_3 . IDENT_4 ) ) ) + STRING_1 ) + ( java . lang . String . valueOf ( IDENT_3 . MAX_VALUE ) ) ) + "]" ; java . util . Collection < java . lang . IDENT_5 > expected = new java . util . ArrayList < java . lang . IDENT_5 > ( ) ; java . util . Collections . addAll ( expected , IDENT_3 . IDENT_4 , IDENT_3 . MAX_VALUE ) ; java . util . Collection < java . lang . IDENT_5 > output = IDENT_6 . METHOD_2 ( java . util . List . class , input , context ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . Class , java . lang . String , io . IDENT_0 . IDENT_1 . serialization . IDENT_2 ) { IDENT_7 collection = ctx . getInstance ( IDENT_8 ) ; int IDENT_9 = response . indexOf ( STRING_2 ) ; while ( IDENT_9 != ( - 1 ) ) { int IDENT_10 = response . indexOf ( STRING_3 , IDENT_9 ) ; collection . add ( METHOD_2 ( response . substring ( ( IDENT_9 + 4 ) , IDENT_10 ) , ctx ) ) ; IDENT_9 = response . indexOf ( STRING_2 , IDENT_10 ) ; } return collection ; }
org . junit . Assert . assertEquals ( expected , output )