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 2 , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_7 . IDENT_8 ) . METHOD_2 ( STRING_0 1 , schema ) . 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_8 ) . METHOD_2 ( STRING_0 1 , schema ) . build ( ) ) . METHOD_1 ( io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_5 . builder ( STRING_0 1 , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_7 . IDENT_9 ) . METHOD_2 ( STRING_2 , schema ) . METHOD_3 ( schema , STRING_0 2 , STRING_1 ) . build ( ) ) . METHOD_1 ( io . cdap . cdap . IDENT_0 . IDENT_4 . v2 . spec . IDENT_5 . builder ( STRING_3 , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_7 . METHOD_4 ( STRING_0 1 , Constants . IDENT_10 . IDENT_11 ) ) . build ( ) ) . METHOD_5 ( STRING_3 , STRING_0 1 ) . METHOD_5 ( STRING_0 1 , STRING_0 2 ) . METHOD_5 ( STRING_0 1 , STRING_1 ) . build ( ) ; java . lang . String IDENT_12 = io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_13 . METHOD_6 ( IDENT_2 . METHOD_7 ( ) ) ; IDENT_14 . put ( IDENT_12 , IDENT_2 ) ; java . util . Set < io . cdap . cdap . IDENT_0 . IDENT_4 . IDENT_15 > IDENT_16 = new java . util . HashSet ( ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_17 , IDENT_18 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_17 , IDENT_19 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_17 , IDENT_20 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_18 , IDENT_21 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_19 , IDENT_21 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_20 , IDENT_21 ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_21 , IDENT_12 ) ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_22 expected = new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_9 ( IDENT_14 , IDENT_16 ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_9 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_10 ( ) ) { java . lang . String IDENT_36 = IDENT_35 . METHOD_11 ( ) . 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_12 ( 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_13 ( ) . isEmpty ( ) ) { if ( ! ( IDENT_27 . METHOD_14 ( IDENT_29 ) ) ) { throw new java . lang . IllegalStateException ( STRING_4 ) ; } java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . common . IDENT_1 > IDENT_14 = 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_14 . put ( IDENT_43 , IDENT_46 ) ; } return new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_9 ( IDENT_14 , new java . util . HashSet < io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 > ( ) ) ; } java . util . Set < java . lang . String > IDENT_47 = com . google . common . collect . IDENT_48 . METHOD_15 ( IDENT_27 , IDENT_31 . METHOD_16 ( ) ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_49 = new java . util . HashMap ( ) ; for ( io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 connection : spec . METHOD_13 ( ) ) { if ( IDENT_31 . containsKey ( connection . METHOD_17 ( ) ) ) { IDENT_32 . get ( connection . METHOD_17 ( ) ) . add ( connection . METHOD_18 ( ) ) ; } if ( IDENT_31 . containsKey ( connection . METHOD_18 ( ) ) ) { IDENT_33 . get ( connection . METHOD_18 ( ) ) . add ( connection . METHOD_17 ( ) ) ; } if ( IDENT_31 . containsKey ( connection . METHOD_17 ( ) ) ) { if ( IDENT_31 . containsKey ( connection . METHOD_18 ( ) ) ) { IDENT_49 . put ( connection . METHOD_18 ( ) , connection . METHOD_17 ( ) ) ; } io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_12 IDENT_50 = IDENT_31 . get ( connection . METHOD_17 ( ) ) ; java . lang . String IDENT_51 ; java . lang . String IDENT_52 ; if ( connection . METHOD_19 ( ) ) { IDENT_51 = connection . METHOD_18 ( ) ; IDENT_52 = IDENT_50 . METHOD_20 ( ) ; } else { IDENT_51 = IDENT_50 . METHOD_21 ( ) ; IDENT_52 = connection . METHOD_18 ( ) ; } IDENT_31 . put ( connection . METHOD_17 ( ) , new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_12 ( 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 . IDENT_54 > IDENT_55 = io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_13 . split ( spec . METHOD_13 ( ) , IDENT_31 . METHOD_16 ( ) , IDENT_25 , IDENT_26 , IDENT_27 , IDENT_28 , IDENT_53 ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_56 = METHOD_22 ( IDENT_31 . METHOD_16 ( ) , IDENT_49 , IDENT_33 , IDENT_32 , IDENT_27 ) ; java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 > IDENT_57 = new java . util . HashMap ( ) ; for ( io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 IDENT_58 : IDENT_55 ) { IDENT_57 . put ( io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_13 . METHOD_6 ( IDENT_58 ) , IDENT_58 ) ; } java . util . Set < io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 > IDENT_16 = new java . util . HashSet ( ) ; java . util . Map < java . lang . String , io . cdap . cdap . IDENT_0 . common . IDENT_1 > IDENT_14 = new java . util . HashMap ( ) ; for ( Map . Entry < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 > IDENT_59 : IDENT_57 . entrySet ( ) ) { java . lang . String IDENT_60 = IDENT_59 . getKey ( ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 IDENT_61 = IDENT_59 . getValue ( ) ; java . util . Set < java . lang . String > IDENT_62 = com . google . common . collect . IDENT_48 . METHOD_23 ( IDENT_47 , IDENT_61 . METHOD_24 ( ) ) ; for ( java . lang . String IDENT_63 : IDENT_62 ) { if ( ! ( IDENT_14 . containsKey ( IDENT_63 ) ) ) { IDENT_14 . put ( IDENT_63 , io . cdap . cdap . IDENT_0 . common . IDENT_1 . builder ( IDENT_45 ) . METHOD_1 ( IDENT_34 . get ( IDENT_63 ) ) . build ( ) ) ; } } if ( ! ( IDENT_47 . METHOD_14 ( IDENT_61 . METHOD_24 ( ) ) ) ) { io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 IDENT_64 = METHOD_25 ( IDENT_61 , IDENT_56 ) ; if ( ! ( com . google . common . collect . IDENT_48 . METHOD_23 ( IDENT_64 . METHOD_24 ( ) , IDENT_47 ) . isEmpty ( ) ) ) { java . util . Set < java . lang . String > nodes = com . google . common . collect . IDENT_48 . METHOD_26 ( IDENT_64 . METHOD_24 ( ) , IDENT_47 ) ; IDENT_64 = IDENT_64 . METHOD_27 ( nodes ) ; } IDENT_14 . put ( IDENT_60 , METHOD_28 ( IDENT_64 , IDENT_53 , IDENT_34 , IDENT_56 ) ) ; } for ( java . lang . String IDENT_65 : com . google . common . collect . IDENT_48 . METHOD_23 ( IDENT_47 , IDENT_61 . METHOD_29 ( ) ) ) { io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_12 IDENT_50 = IDENT_31 . get ( IDENT_65 ) ; java . lang . Boolean condition = ( IDENT_50 == null ) ? null : IDENT_61 . METHOD_24 ( ) . contains ( IDENT_50 . METHOD_21 ( ) ) ; for ( java . lang . String output : IDENT_61 . METHOD_30 ( IDENT_65 ) ) { if ( IDENT_47 . contains ( output ) ) { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_65 , output , condition ) ) ; } else { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_65 , IDENT_60 , condition ) ) ; } } } for ( java . lang . String IDENT_66 : com . google . common . collect . IDENT_48 . METHOD_23 ( IDENT_47 , IDENT_61 . METHOD_31 ( ) ) ) { for ( java . lang . String input : IDENT_61 . METHOD_32 ( IDENT_66 ) ) { if ( IDENT_47 . contains ( input ) ) { io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_12 IDENT_50 = IDENT_31 . get ( input ) ; java . lang . Boolean condition = ( IDENT_50 == null ) ? null : IDENT_61 . METHOD_24 ( ) . contains ( IDENT_50 . METHOD_21 ( ) ) ; IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( input , IDENT_66 , condition ) ) ; } else { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_60 , IDENT_66 ) ) ; } } } java . util . Set < java . lang . String > IDENT_67 = com . google . common . collect . IDENT_48 . METHOD_26 ( IDENT_61 . METHOD_31 ( ) , IDENT_47 ) ; for ( Map . Entry < java . lang . String , io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 > IDENT_68 : IDENT_57 . entrySet ( ) ) { java . lang . String IDENT_69 = IDENT_68 . getKey ( ) ; io . cdap . cdap . IDENT_0 . IDENT_6 . IDENT_54 IDENT_70 = IDENT_68 . getValue ( ) ; if ( IDENT_60 . equals ( IDENT_69 ) ) { continue ; } if ( ! ( com . google . common . collect . IDENT_48 . METHOD_23 ( IDENT_67 , IDENT_70 . METHOD_29 ( ) ) . isEmpty ( ) ) ) { IDENT_16 . add ( new io . cdap . cdap . IDENT_0 . IDENT_4 . METHOD_8 ( IDENT_60 , IDENT_69 ) ) ; } } } return new io . cdap . cdap . IDENT_0 . IDENT_6 . METHOD_9 ( IDENT_14 , IDENT_16 ) ; }
org . junit . Assert . assertEquals ( expected , actual )