METHOD_0 ( ) { final com . google . common . base . IDENT_0 < java . lang . String , java . lang . Integer > function = new com . google . common . base . IDENT_0 < java . lang . String , java . lang . Integer > ( ) { @ org . baeldung . IDENT_1 . Override public final org . baeldung . IDENT_1 . Integer apply ( final java . lang . String input ) { return input . length ( ) ; } } ; final java . util . List < java . lang . String > IDENT_2 = com . google . common . collect . Lists . newArrayList ( STRING_0 , STRING_1 , STRING_2 , STRING_3 ) ; final java . lang . IDENT_3 < java . lang . Integer > result = com . google . common . collect . IDENT_4 . transform ( IDENT_2 , function ) ; "<AssertPlaceHolder>" ; } apply ( java . lang . String ) { return s . equals ( list . get ( 0 ) ) ; }
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . contains ( 4 , 4 , 4 , 3 ) )