METHOD_0 ( ) { java . util . Set < java . lang . String > source = new java . util . METHOD_1 ( ) ; source . add ( STRING_0 ) ; source . add ( STRING_1 ) ; "<AssertPlaceHolder>" ; } toList ( java . lang . IDENT_0 ) { if ( source instanceof java . util . List ) { return ( ( java . util . List < T > ) ( source ) ) ; } if ( source instanceof java . util . Collection ) { return new java . util . ArrayList ( ( ( java . util . Collection < T > ) ( source ) ) ) ; } java . util . List < T > result = new java . util . ArrayList ( ) ; for ( T value : source ) { result . add ( value ) ; } return result ; }
org . junit . Assert . assertThat ( toList ( source ) , contains ( source . toArray ( new java . lang . String [ 2 ] ) ) )