METHOD_0 ( ) { org . baeldung . java . collections . List < java . lang . Integer > list = org . baeldung . java . collections . IDENT_0 . range ( 0 , 10 ) . METHOD_1 ( ) . collect ( METHOD_2 ( ArrayList :: new ) ) ; org . baeldung . java . collections . IDENT_1 < java . lang . Integer > it = list . METHOD_3 ( list . size ( ) ) ; org . baeldung . java . collections . List < java . lang . Integer > result = new org . baeldung . java . collections . ArrayList ( list . size ( ) ) ; while ( it . METHOD_4 ( ) ) { result . add ( it . METHOD_5 ( ) ) ; } org . baeldung . java . collections . Collections . METHOD_6 ( list ) ; "<AssertPlaceHolder>" ; } add ( org . springframework . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 ) { if ( ( ! ( com . baeldung . IDENT_6 . repository . IDENT_7 . IDENT_8 . equals ( event . getType ( ) ) ) ) && ( ! ( Constants . IDENT_9 . equals ( event . METHOD_7 ( ) ) ) ) ) { com . baeldung . IDENT_6 . domain . IDENT_10 IDENT_11 = new com . baeldung . IDENT_6 . domain . METHOD_8 ( ) ; IDENT_11 . METHOD_9 ( event . METHOD_7 ( ) ) ; IDENT_11 . METHOD_10 ( event . getType ( ) ) ; IDENT_11 . METHOD_11 ( event . METHOD_12 ( ) ) ; com . baeldung . IDENT_6 . repository . Map < java . lang . String , java . lang . String > IDENT_12 = IDENT_13 . METHOD_13 ( event . METHOD_14 ( ) ) ; IDENT_11 . METHOD_15 ( METHOD_16 ( IDENT_12 ) ) ; IDENT_14 . save ( IDENT_11 ) ; } }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( list ) )