METHOD_0 ( ) { final java . util . Map < java . lang . String , java . lang . String > expected = new java . util . HashMap ( ) ; expected . put ( STRING_0 , STRING_1 ) ; expected . put ( STRING_2 , STRING_3 ) ; org . IDENT_0 . type . IDENT_1 [ ] IDENT_2 = new org . IDENT_0 . type . IDENT_1 [ 4 ] ; IDENT_2 [ 0 ] = org . IDENT_0 . type . IDENT_3 . METHOD_1 ( STRING_0 ) ; IDENT_2 [ 1 ] = org . IDENT_0 . type . IDENT_3 . METHOD_1 ( STRING_1 ) ; IDENT_2 [ 2 ] = org . IDENT_0 . type . IDENT_3 . METHOD_1 ( STRING_2 ) ; IDENT_2 [ 3 ] = org . IDENT_0 . type . IDENT_3 . METHOD_1 ( STRING_3 ) ; target . IDENT_4 = org . IDENT_5 . IDENT_6 . IDENT_7 . message . Mockito . mock ( org . IDENT_0 . type . IDENT_1 . class ) ; org . IDENT_0 . type . IDENT_8 map = org . IDENT_5 . IDENT_6 . IDENT_7 . message . Mockito . mock ( org . IDENT_0 . type . IDENT_8 . class ) ; map = org . IDENT_0 . type . IDENT_3 . METHOD_2 ( IDENT_2 ) ; doReturn ( map ) . when ( target . IDENT_4 ) . METHOD_3 ( ) ; doReturn ( STRING_1 ) . when ( IDENT_9 ) . convert ( IDENT_2 [ 1 ] , java . lang . String . class ) ; doReturn ( STRING_3 ) . when ( IDENT_9 ) . convert ( IDENT_2 [ 3 ] , java . lang . String . class ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( java . lang . Class ) { java . util . Map < java . lang . String , T > map = new java . util . HashMap < java . lang . String , T > ( ) ; if ( ( ( body ) == null ) && ( ( IDENT_4 ) != null ) ) { org . IDENT_0 . IDENT_10 IDENT_0 = null ; try { IDENT_0 = org . IDENT_5 . IDENT_6 . IDENT_7 . message . IDENT_11 . pool . METHOD_5 ( ) ; if ( IDENT_0 == null ) { IDENT_0 = new org . IDENT_0 . METHOD_6 ( ) ; } org . IDENT_0 . type . IDENT_8 IDENT_12 = IDENT_4 . METHOD_3 ( ) ; for ( Map . Entry < org . IDENT_0 . type . IDENT_1 , org . IDENT_0 . type . IDENT_1 > e : IDENT_12 . entrySet ( ) ) { map . put ( e . getKey ( ) . METHOD_7 ( ) . getString ( ) , IDENT_0 . convert ( e . getValue ( ) , clazz ) ) ; } body = map ; } catch ( java . io . IOException e ) { org . IDENT_5 . IDENT_6 . IDENT_7 . message . IDENT_11 . log . error ( STRING_4 , e ) ; } finally { if ( IDENT_0 != null ) { org . IDENT_5 . IDENT_6 . IDENT_7 . message . IDENT_11 . pool . add ( IDENT_0 ) ; } } } return ( ( java . util . Map < java . lang . String , T > ) ( body ) ) ; }
org . junit . Assert . assertThat ( target . METHOD_4 ( java . lang . String . class ) , org . hamcrest . CoreMatchers . is ( expected ) )