METHOD_0 ( ) { final java . util . HashMap < java . lang . String , java . lang . String > map = new java . util . HashMap ( ) ; map . put ( STRING_0 , STRING_1 ) ; final org . apache . logging . log4j . core . IDENT_0 . IDENT_1 IDENT_0 = new org . apache . logging . log4j . core . IDENT_0 . METHOD_1 ( map ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . apache . logging . log4j . core . IDENT_2 , java . lang . String ) { final org . apache . logging . log4j . message . Message msg = event . getMessage ( ) ; if ( msg instanceof org . apache . logging . log4j . message . IDENT_3 ) { try { org . apache . logging . log4j . message . IDENT_3 < ? , ? > IDENT_4 = ( ( org . apache . logging . log4j . message . IDENT_3 ) ( msg ) ) ; if ( ( ( key == null ) || ( ( key . length ( ) ) == 0 ) ) || ( key . equals ( STRING_2 ) ) ) { return IDENT_4 . METHOD_3 ( IDENT_3 . IDENT_5 . IDENT_6 . name ( ) ) ; } return IDENT_4 . get ( key ) ; } catch ( final java . lang . Exception ex ) { org . apache . logging . log4j . METHOD_2 . IDENT_7 . LOGGER . warn ( org . apache . logging . log4j . METHOD_2 . IDENT_7 . IDENT_8 , STRING_3 , key , ex ) ; return null ; } } return null ; }
org . junit . Assert . assertEquals ( STRING_1 , METHOD_2 . METHOD_2 ( null , STRING_0 ) )