METHOD_0 ( ) { final java . util . List < com . baeldung . IDENT_0 . entity . IDENT_1 > IDENT_2 = com . google . common . collect . Lists . newArrayList ( new com . baeldung . IDENT_0 . entity . METHOD_1 ( STRING_0 , 10 ) , new com . baeldung . IDENT_0 . entity . METHOD_1 ( STRING_1 , 12 ) ) ; final java . util . IDENT_3 < com . baeldung . IDENT_0 . entity . METHOD_1 > IDENT_4 = ( IDENT_5 , IDENT_6 ) -> IDENT_6 . getName ( ) . compareTo ( IDENT_5 . getName ( ) ) ; final java . util . List < com . baeldung . IDENT_0 . entity . METHOD_1 > IDENT_7 = IDENT_2 . stream ( ) . METHOD_2 ( IDENT_4 ) . collect ( java . util . stream . IDENT_8 . toList ( ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Integer ) { return IDENT_9 . METHOD_3 ( org . hibernate . IDENT_10 . class ) . METHOD_4 ( ) . get ( org . baeldung . IDENT_11 . model . IDENT_12 . class , id ) ; }
org . junit . Assert . assertThat ( IDENT_7 . get ( 0 ) , org . hamcrest . Matchers . equalTo ( new com . baeldung . IDENT_0 . entity . METHOD_1 ( STRING_0 , 10 ) ) )