METHOD_0 ( ) { com . baeldung . java . collections . List < java . lang . String > IDENT_0 = new com . baeldung . java . collections . ArrayList ( asList ( STRING_0 , STRING_1 , STRING_2 , STRING_3 ) ) ; com . baeldung . java . collections . IDENT_1 < java . lang . String > iterator = IDENT_0 . METHOD_1 ( ) ; while ( iterator . hasNext ( ) ) { java . lang . String next = iterator . next ( ) ; if ( com . baeldung . java . collections . IDENT_2 . equals ( next , STRING_1 ) ) { iterator . set ( STRING_4 ) ; } if ( com . baeldung . java . collections . IDENT_2 . equals ( next , STRING_2 ) ) { iterator . remove ( ) ; } if ( com . baeldung . java . collections . IDENT_2 . equals ( next , STRING_3 ) ) { iterator . add ( STRING_5 ) ; } } "<AssertPlaceHolder>" ; } add ( org . springframework . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_6 ) { if ( ( ! ( com . baeldung . IDENT_7 . repository . IDENT_8 . IDENT_9 . equals ( event . getType ( ) ) ) ) && ( ! ( Constants . IDENT_10 . equals ( event . METHOD_2 ( ) ) ) ) ) { com . baeldung . IDENT_7 . domain . IDENT_11 IDENT_12 = new com . baeldung . IDENT_7 . domain . METHOD_3 ( ) ; IDENT_12 . METHOD_4 ( event . METHOD_2 ( ) ) ; IDENT_12 . METHOD_5 ( event . getType ( ) ) ; IDENT_12 . METHOD_6 ( event . METHOD_7 ( ) ) ; com . baeldung . IDENT_7 . repository . Map < java . lang . String , java . lang . String > IDENT_13 = IDENT_14 . METHOD_8 ( event . METHOD_9 ( ) ) ; IDENT_12 . METHOD_10 ( METHOD_11 ( IDENT_13 ) ) ; IDENT_15 . save ( IDENT_12 ) ; } }
org . junit . Assert . assertEquals ( IDENT_0 , asList ( STRING_0 , STRING_4 , STRING_3 , STRING_5 ) )