METHOD_0 ( ) { final org . opendaylight . yangtools . yang . model . api . IDENT_0 context = org . opendaylight . yangtools . yang . test . util . IDENT_1 . METHOD_1 ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_6 . class , STRING_0 , STRING_1 ) ; final org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_7 IDENT_8 = mock ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_7 . class ) ; doReturn ( context ) . when ( IDENT_8 ) . METHOD_2 ( ) ; final org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_9 validator = new org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . METHOD_3 ( IDENT_8 ) ; final org . w3c . dom . Document document = org . opendaylight . IDENT_2 . api . xml . IDENT_10 . METHOD_4 ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_11 . class . getResourceAsStream ( STRING_2 ) ) ; final org . opendaylight . IDENT_2 . api . xml . IDENT_12 IDENT_13 = org . opendaylight . IDENT_2 . api . xml . IDENT_12 . METHOD_5 ( document ) ; final org . opendaylight . yangtools . yang . data . api . IDENT_14 actual = validator . validate ( IDENT_13 ) ; final java . util . Map < org . opendaylight . yangtools . yang . common . IDENT_15 , java . lang . Object > IDENT_16 = new java . util . HashMap ( ) ; IDENT_16 . put ( org . opendaylight . yangtools . yang . common . IDENT_15 . create ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_17 . IDENT_18 , "name" ) , "foo" ) ; final org . opendaylight . yangtools . yang . data . api . IDENT_14 expected = org . opendaylight . yangtools . yang . data . api . IDENT_14 . builder ( ) . node ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_17 . IDENT_18 ) . node ( org . opendaylight . yangtools . yang . common . IDENT_15 . create ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_17 . IDENT_18 , STRING_3 ) ) . METHOD_6 ( org . opendaylight . yangtools . yang . common . IDENT_15 . create ( org . opendaylight . IDENT_2 . IDENT_3 . IDENT_4 . IDENT_5 . get . IDENT_17 . IDENT_18 , STRING_3 ) , IDENT_16 ) . build ( ) ; "<AssertPlaceHolder>" ; } build ( ) { return configuration ; }
org . junit . Assert . assertEquals ( expected , actual )