METHOD_0 ( ) { java . io . IDENT_0 writer = org . mockito . Mockito . mock ( java . io . IDENT_0 . class ) ; com . streamsets . pipeline . lib . generator . xml . IDENT_1 generator = new com . streamsets . pipeline . lib . generator . xml . METHOD_1 ( writer , true , com . google . common . collect . ImmutableList . of ( com . streamsets . pipeline . lib . generator . xml . IDENT_2 . IDENT_3 ) , true ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_4 = com . google . common . collect . ImmutableMap . of ( STRING_0 , STRING_1 ) ; com . streamsets . pipeline . api . Field field = com . streamsets . pipeline . api . Field . create ( 0 ) ; field . METHOD_2 ( STRING_2 , STRING_3 ) ; field . METHOD_2 ( STRING_4 , STRING_5 ) ; field . METHOD_2 ( "a" , STRING_6 ) ; java . util . Map < java . lang . String , java . lang . String > expected = com . google . common . collect . ImmutableMap . of ( STRING_0 , STRING_3 , STRING_7 , STRING_5 ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_5 = generator . METHOD_3 ( IDENT_4 , field ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . util . Map , com . streamsets . pipeline . api . Field ) { java . util . Map < java . lang . String , java . lang . String > IDENT_6 = IDENT_4 ; if ( ( field . METHOD_4 ( ) ) != null ) { boolean IDENT_7 = false ; for ( Map . Entry < java . lang . String , java . lang . String > IDENT_8 : field . METHOD_4 ( ) . entrySet ( ) ) { java . lang . String key = IDENT_8 . getKey ( ) ; if ( key . equals ( STRING_8 ) ) { if ( ! IDENT_7 ) { IDENT_6 = new java . util . HashMap ( IDENT_4 ) ; IDENT_7 = true ; } java . lang . String IDENT_9 = IDENT_8 . getValue ( ) ; IDENT_6 . put ( "" , IDENT_9 ) ; } else if ( key . startsWith ( STRING_9 ) ) { if ( ! IDENT_7 ) { IDENT_6 = new java . util . HashMap ( IDENT_4 ) ; IDENT_7 = true ; } java . lang . String IDENT_10 = key . substring ( STRING_9 . length ( ) ) ; java . lang . String IDENT_9 = IDENT_8 . getValue ( ) ; IDENT_6 . put ( IDENT_10 , IDENT_9 ) ; } } } return IDENT_6 ; }
org . junit . Assert . assertEquals ( expected , IDENT_5 )