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