METHOD_0 ( ) { io . cdap . cdap . IDENT_0 . common . IDENT_1 IDENT_2 = io . cdap . cdap . IDENT_0 . common . IDENT_1 . builder ( IDENT_3 ) . METHOD_1 ( io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_5 . builder ( STRING_0 , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_7 . METHOD_2 ( STRING_0 , Constants . IDENT_8 . IDENT_9 ) ) . build ( ) ) . METHOD_1 ( io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_5 . builder ( STRING_1 , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_7 . IDENT_10 ) . build ( ) ) . METHOD_3 ( STRING_0 , STRING_1 ) . build ( ) ; IDENT_11 = new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 ( com . google . common . collect . IDENT_12 . of ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( STRING_2 , STRING_1 ) ) ) ; java . lang . String IDENT_13 = io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_14 . METHOD_6 ( IDENT_11 ) ; IDENT_15 . put ( IDENT_13 , IDENT_2 ) ; java . util . Set < io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 > IDENT_16 = new java . util . HashSet ( ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_17 , IDENT_18 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_18 , IDENT_19 , true ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_18 , IDENT_20 , false ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_19 , IDENT_21 , true ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_20 , IDENT_13 , true ) ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_22 expected = new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_7 ( IDENT_15 , IDENT_16 ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_7 actual = IDENT_6 . plan ( IDENT_23 ) ; "<AssertPlaceHolder>" ; } plan ( io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_24 ) { java . util . Set < java . lang . String > IDENT_25 = new java . util . HashSet ( ) ; java . util . Set < java . lang . String > IDENT_26 = new java . util . HashSet ( ) ; java . util . Set < java . lang . String > IDENT_27 = new java . util . HashSet ( ) ; java . util . Set < java . lang . String > IDENT_28 = new java . util . HashSet ( ) ; java . util . Set < java . lang . String > IDENT_29 = new java . util . HashSet ( ) ; java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_30 > IDENT_31 = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , java . util . Set < java . lang . String > > IDENT_32 = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , java . util . Set < java . lang . String > > IDENT_33 = new java . util . HashMap ( ) ; java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_5 > IDENT_34 = new java . util . HashMap ( ) ; for ( io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_5 IDENT_35 : spec . METHOD_8 ( ) ) { java . lang . String IDENT_36 = IDENT_35 . METHOD_9 ( ) . getType ( ) ; IDENT_29 . add ( IDENT_35 . getName ( ) ) ; if ( IDENT_37 . contains ( IDENT_36 ) ) { IDENT_25 . add ( IDENT_35 . getName ( ) ) ; } if ( IDENT_38 . contains ( IDENT_36 ) ) { IDENT_26 . add ( IDENT_35 . getName ( ) ) ; } if ( IDENT_39 . contains ( IDENT_36 ) ) { IDENT_27 . add ( IDENT_35 . getName ( ) ) ; } if ( IDENT_40 . contains ( IDENT_36 ) ) { IDENT_28 . add ( IDENT_35 . getName ( ) ) ; } if ( IDENT_41 . IDENT_42 . equals ( IDENT_36 ) ) { IDENT_31 . put ( IDENT_35 . getName ( ) , new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_10 ( null , null ) ) ; IDENT_32 . put ( IDENT_35 . getName ( ) , new java . util . HashSet < java . lang . String > ( ) ) ; IDENT_33 . put ( IDENT_35 . getName ( ) , new java . util . HashSet < java . lang . String > ( ) ) ; } IDENT_34 . put ( IDENT_35 . getName ( ) , IDENT_35 ) ; } if ( spec . METHOD_11 ( ) . isEmpty ( ) ) { if ( ! ( IDENT_27 . METHOD_12 ( IDENT_29 ) ) ) { throw new java . lang . IllegalStateException ( STRING_3 ) ; } java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . common . IDENT_1 > IDENT_15 = new java . util . HashMap ( ) ; for ( java . lang . String IDENT_43 : IDENT_27 ) { io . cdap . cdap . IDENT_0 . common . IDENT_1 . Builder IDENT_44 = io . cdap . cdap . IDENT_0 . common . IDENT_1 . builder ( IDENT_45 ) ; io . cdap . cdap . IDENT_0 . common . IDENT_1 IDENT_46 = IDENT_44 . METHOD_1 ( IDENT_34 . get ( IDENT_43 ) ) . build ( ) ; IDENT_15 . put ( IDENT_43 , IDENT_46 ) ; } return new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_7 ( IDENT_15 , new java . util . HashSet < io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 > ( ) ) ; } java . util . Set < java . lang . String > IDENT_47 = com . google . common . collect . IDENT_48 . METHOD_13 ( IDENT_27 , IDENT_31 . METHOD_14 ( ) ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_49 = new java . util . HashMap ( ) ; for ( io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 connection : spec . METHOD_11 ( ) ) { if ( IDENT_31 . containsKey ( connection . METHOD_15 ( ) ) ) { IDENT_32 . get ( connection . METHOD_15 ( ) ) . add ( connection . METHOD_16 ( ) ) ; } if ( IDENT_31 . containsKey ( connection . METHOD_16 ( ) ) ) { IDENT_33 . get ( connection . METHOD_16 ( ) ) . add ( connection . METHOD_15 ( ) ) ; } if ( IDENT_31 . containsKey ( connection . METHOD_15 ( ) ) ) { if ( IDENT_31 . containsKey ( connection . METHOD_16 ( ) ) ) { IDENT_49 . put ( connection . METHOD_16 ( ) , connection . METHOD_15 ( ) ) ; } io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_10 IDENT_50 = IDENT_31 . get ( connection . METHOD_15 ( ) ) ; java . lang . String IDENT_51 ; java . lang . String IDENT_52 ; if ( connection . METHOD_17 ( ) ) { IDENT_51 = connection . METHOD_16 ( ) ; IDENT_52 = IDENT_50 . METHOD_18 ( ) ; } else { IDENT_51 = IDENT_50 . METHOD_19 ( ) ; IDENT_52 = connection . METHOD_16 ( ) ; } IDENT_31 . put ( connection . METHOD_15 ( ) , new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_10 ( IDENT_51 , IDENT_52 ) ) ; } } java . util . Map < java . lang . String , java . lang . String > IDENT_53 = new java . util . HashMap ( ) ; java . util . Set < io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 > IDENT_54 = io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_14 . split ( spec . METHOD_11 ( ) , IDENT_31 . METHOD_14 ( ) , IDENT_25 , IDENT_26 , IDENT_27 , IDENT_28 , IDENT_53 ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_55 = METHOD_20 ( IDENT_31 . METHOD_14 ( ) , IDENT_49 , IDENT_33 , IDENT_32 , IDENT_27 ) ; java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 > IDENT_56 = new java . util . HashMap ( ) ; for ( io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 IDENT_57 : IDENT_54 ) { IDENT_56 . put ( io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_14 . METHOD_6 ( IDENT_57 ) , IDENT_57 ) ; } java . util . Set < io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 > IDENT_16 = new java . util . HashSet ( ) ; java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . common . IDENT_1 > IDENT_15 = new java . util . HashMap ( ) ; for ( Map . Entry < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 > IDENT_58 : IDENT_56 . entrySet ( ) ) { java . lang . String IDENT_59 = IDENT_58 . getKey ( ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 IDENT_60 = IDENT_58 . getValue ( ) ; java . util . Set < java . lang . String > IDENT_61 = com . google . common . collect . IDENT_48 . METHOD_21 ( IDENT_47 , IDENT_60 . METHOD_22 ( ) ) ; for ( java . lang . String IDENT_62 : IDENT_61 ) { if ( ! ( IDENT_15 . containsKey ( IDENT_62 ) ) ) { IDENT_15 . put ( IDENT_62 , io . cdap . cdap . IDENT_0 . common . IDENT_1 . builder ( IDENT_45 ) . METHOD_1 ( IDENT_34 . get ( IDENT_62 ) ) . build ( ) ) ; } } if ( ! ( IDENT_47 . METHOD_12 ( IDENT_60 . METHOD_22 ( ) ) ) ) { io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 IDENT_63 = METHOD_23 ( IDENT_60 , IDENT_55 ) ; if ( ! ( com . google . common . collect . IDENT_48 . METHOD_21 ( IDENT_63 . METHOD_22 ( ) , IDENT_47 ) . isEmpty ( ) ) ) { java . util . Set < java . lang . String > nodes = com . google . common . collect . IDENT_48 . METHOD_24 ( IDENT_63 . METHOD_22 ( ) , IDENT_47 ) ; IDENT_63 = IDENT_63 . METHOD_25 ( nodes ) ; } IDENT_15 . put ( IDENT_59 , METHOD_26 ( IDENT_63 , IDENT_53 , IDENT_34 , IDENT_55 ) ) ; } for ( java . lang . String IDENT_64 : com . google . common . collect . IDENT_48 . METHOD_21 ( IDENT_47 , IDENT_60 . METHOD_27 ( ) ) ) { io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_10 IDENT_50 = IDENT_31 . get ( IDENT_64 ) ; java . lang . Boolean condition = ( IDENT_50 == null ) ? null : IDENT_60 . METHOD_22 ( ) . contains ( IDENT_50 . METHOD_19 ( ) ) ; for ( java . lang . String output : IDENT_60 . METHOD_28 ( IDENT_64 ) ) { if ( IDENT_47 . contains ( output ) ) { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_64 , output , condition ) ) ; } else { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_64 , IDENT_59 , condition ) ) ; } } } for ( java . lang . String IDENT_65 : com . google . common . collect . IDENT_48 . METHOD_21 ( IDENT_47 , IDENT_60 . METHOD_29 ( ) ) ) { for ( java . lang . String input : IDENT_60 . METHOD_30 ( IDENT_65 ) ) { if ( IDENT_47 . contains ( input ) ) { io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_10 IDENT_50 = IDENT_31 . get ( input ) ; java . lang . Boolean condition = ( IDENT_50 == null ) ? null : IDENT_60 . METHOD_22 ( ) . contains ( IDENT_50 . METHOD_19 ( ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( input , IDENT_65 , condition ) ) ; } else { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_59 , IDENT_65 ) ) ; } } } java . util . Set < java . lang . String > IDENT_66 = com . google . common . collect . IDENT_48 . METHOD_24 ( IDENT_60 . METHOD_29 ( ) , IDENT_47 ) ; for ( Map . Entry < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 > IDENT_67 : IDENT_56 . entrySet ( ) ) { java . lang . String IDENT_68 = IDENT_67 . getKey ( ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_4 IDENT_69 = IDENT_67 . getValue ( ) ; if ( IDENT_59 . equals ( IDENT_68 ) ) { continue ; } if ( ! ( com . google . common . collect . IDENT_48 . METHOD_21 ( IDENT_66 , IDENT_69 . METHOD_27 ( ) ) . isEmpty ( ) ) ) { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_5 ( IDENT_59 , IDENT_68 ) ) ; } } } return new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_7 ( IDENT_15 , IDENT_16 ) ; }
org . junit . Assert . assertEquals ( expected , actual )