METHOD_0 ( ) { org . onosproject . net . resource . IDENT_0 device = org . onosproject . net . resource . IDENT_1 . METHOD_1 ( org . onosproject . net . IDENT_2 . METHOD_2 ( "a" ) ) . resource ( ) ; java . util . List < org . onosproject . net . IDENT_3 > IDENT_4 = java . util . stream . IDENT_5 . range ( 0 , 1 ) . METHOD_3 ( IDENT_3 :: IDENT_6 ) . collect ( java . util . stream . IDENT_7 . toList ( ) ) ; java . util . List < org . IDENT_8 . packet . IDENT_9 > IDENT_10 = java . util . stream . IDENT_5 . range ( 0 , 2 ) . METHOD_3 ( ( x ) -> org . IDENT_8 . packet . IDENT_9 . METHOD_4 ( ( ( short ) ( x ) ) ) ) . collect ( java . util . stream . IDENT_7 . toList ( ) ) ; java . util . Set < org . onosproject . net . resource . IDENT_0 > IDENT_11 = java . util . stream . IDENT_12 . METHOD_5 ( IDENT_4 . stream ( ) , IDENT_10 . stream ( ) ) . map ( device :: child ) . collect ( java . util . stream . IDENT_7 . METHOD_6 ( ) ) ; org . onosproject . store . resource . impl . IDENT_13 IDENT_14 = org . onosproject . store . resource . impl . IDENT_15 . of ( IDENT_11 ) ; java . util . Set < org . onosproject . net . resource . IDENT_0 > IDENT_16 = IDENT_4 . stream ( ) . map ( device :: child ) . collect ( java . util . stream . IDENT_7 . METHOD_6 ( ) ) ; org . onosproject . store . resource . impl . IDENT_13 other = org . onosproject . store . resource . impl . IDENT_15 . of ( IDENT_16 ) ; org . onosproject . store . resource . impl . IDENT_13 IDENT_17 = IDENT_14 . METHOD_7 ( other ) ; byte [ ] bytes = serializer . encode ( IDENT_17 ) ; "<AssertPlaceHolder>" ; } decode ( com . fasterxml . jackson . databind . node . IDENT_18 ) { com . fasterxml . jackson . databind . IDENT_19 IDENT_20 = json . get ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_23 ) ; if ( ! ( IDENT_20 . METHOD_8 ( ) ) ) { throw new java . lang . IllegalArgumentException ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_24 ) ; } org . onosproject . net . IDENT_25 IDENT_26 = codec ( org . onosproject . net . IDENT_25 . class ) . decode ( ( ( com . fasterxml . jackson . databind . node . IDENT_18 ) ( IDENT_20 ) ) , this ) ; com . fasterxml . jackson . databind . IDENT_19 IDENT_27 = json . get ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_28 ) ; if ( ! ( IDENT_27 . METHOD_8 ( ) ) ) { throw new java . lang . IllegalArgumentException ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_24 ) ; } org . onosproject . net . IDENT_25 IDENT_29 = codec ( org . onosproject . net . IDENT_25 . class ) . decode ( ( ( com . fasterxml . jackson . databind . node . IDENT_18 ) ( IDENT_27 ) ) , this ) ; com . fasterxml . jackson . databind . IDENT_19 IDENT_30 = json . get ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_31 ) ; boolean IDENT_32 = ( IDENT_30 != null ) ? IDENT_30 . METHOD_9 ( ) : false ; com . fasterxml . jackson . databind . IDENT_19 IDENT_33 = json . get ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_34 ) ; org . onosproject . net . IDENT_35 IDENT_36 = null ; if ( IDENT_33 != null ) { if ( ! ( IDENT_33 . METHOD_8 ( ) ) ) { throw new java . lang . IllegalArgumentException ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_24 ) ; } else { IDENT_36 = org . onosproject . net . IDENT_21 . json . IDENT_37 . decode ( ( ( com . fasterxml . jackson . databind . node . IDENT_18 ) ( IDENT_33 ) ) ) ; } } java . lang . String IDENT_38 = METHOD_10 ( json . get ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_39 ) , ( ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_39 ) + ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_40 ) ) ) . METHOD_11 ( ) ; org . onosproject . core . IDENT_41 service = METHOD_12 ( org . onosproject . core . IDENT_41 . class ) ; org . onosproject . core . IDENT_42 IDENT_43 = METHOD_13 ( service . METHOD_14 ( IDENT_38 ) , org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_44 ) ; org . onosproject . net . IDENT_45 . IDENT_46 key = null ; org . onosproject . net . device . IDENT_47 IDENT_48 = get ( org . onosproject . net . device . IDENT_47 . class ) ; com . fasterxml . jackson . databind . IDENT_19 IDENT_49 = json . get ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_50 ) ; org . onosproject . net . IDENT_51 IDENT_52 = null ; org . onosproject . net . IDENT_53 . IDENT_54 IDENT_55 = get ( org . onosproject . net . IDENT_53 . IDENT_54 . class ) ; if ( IDENT_49 != null ) { if ( ! ( IDENT_49 . METHOD_8 ( ) ) ) { throw new java . lang . IllegalArgumentException ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_24 ) ; } else { com . fasterxml . jackson . databind . node . IDENT_56 IDENT_57 = METHOD_10 ( ( ( com . fasterxml . jackson . databind . node . IDENT_56 ) ( IDENT_49 . get ( STRING_0 ) ) ) , STRING_1 ) ; java . util . List < org . onosproject . net . IDENT_58 > IDENT_59 = new java . util . ArrayList ( ) ; for ( com . fasterxml . jackson . databind . IDENT_19 node : IDENT_57 ) { java . lang . String IDENT_60 = node . get ( STRING_2 ) . METHOD_11 ( ) ; java . lang . String IDENT_61 = node . get ( STRING_3 ) . METHOD_11 ( ) ; org . onosproject . net . IDENT_25 IDENT_62 = org . onosproject . net . IDENT_25 . METHOD_15 ( IDENT_60 ) ; org . onosproject . net . IDENT_25 IDENT_63 = org . onosproject . net . IDENT_25 . METHOD_15 ( IDENT_61 ) ; org . onosproject . net . IDENT_58 IDENT_53 = IDENT_55 . METHOD_16 ( IDENT_62 , IDENT_63 ) ; if ( IDENT_53 == null ) { org . onosproject . net . IDENT_21 . rest . IDENT_22 . log . warn ( STRING_4 , IDENT_62 , IDENT_63 ) ; throw new java . lang . IllegalArgumentException ( STRING_5 ) ; } IDENT_59 . add ( IDENT_53 ) ; } if ( ( ( ( ! ( IDENT_59 . get ( 0 ) . METHOD_17 ( ) . METHOD_2 ( ) . equals ( IDENT_26 . METHOD_2 ( ) ) ) ) || ( ! ( IDENT_59 . get ( 0 ) . METHOD_17 ( ) . port ( ) . equals ( IDENT_26 . port ( ) ) ) ) ) || ( ! ( IDENT_59 . get ( ( ( IDENT_59 . size ( ) ) - 1 ) ) . METHOD_18 ( ) . METHOD_2 ( ) . equals ( IDENT_29 . METHOD_2 ( ) ) ) ) ) || ( ! ( IDENT_59 . get ( ( ( IDENT_59 . size ( ) ) - 1 ) ) . METHOD_18 ( ) . port ( ) . equals ( IDENT_29 . port ( ) ) ) ) ) { throw new java . lang . IllegalArgumentException ( STRING_6 ) ; } if ( ! ( METHOD_19 ( IDENT_59 ) ) ) { throw new java . lang . IllegalArgumentException ( STRING_7 ) ; } IDENT_52 = new org . onosproject . net . METHOD_20 ( org . onosproject . net . IDENT_21 . rest . IDENT_22 . IDENT_64 , IDENT_59 , new org . IDENT_8 . graph . METHOD_21 ( 1 ) ) ; org . onosproject . net . IDENT_21 . rest . IDENT_22 . log . debug ( STRING_8 , IDENT_52 ) ; } } return METHOD_22 ( IDENT_26 , IDENT_29 , IDENT_48 , key , IDENT_43 , IDENT_32 , IDENT_36 , IDENT_52 ) ; }
org . junit . Assert . assertThat ( serializer . decode ( bytes ) , org . hamcrest . Matchers . is ( IDENT_17 ) )