METHOD_0 ( ) { org . apache . IDENT_0 . transport . rest . vertx . IDENT_1 . IDENT_2 < io . vertx . ext . web . IDENT_3 > param = new org . apache . IDENT_0 . transport . rest . vertx . IDENT_1 . METHOD_1 ( ) ; io . vertx . ext . web . IDENT_3 context = org . mockito . Mockito . mock ( io . vertx . ext . web . IDENT_3 . class ) ; io . vertx . core . http . IDENT_4 request = org . mockito . Mockito . mock ( io . vertx . core . http . IDENT_4 . class ) ; io . vertx . core . net . IDENT_5 address = org . mockito . Mockito . mock ( io . vertx . core . net . IDENT_5 . class ) ; java . lang . String IDENT_6 = STRING_0 ; param . METHOD_2 ( context ) ; org . mockito . Mockito . when ( context . request ( ) ) . thenReturn ( request ) ; org . mockito . Mockito . when ( request . METHOD_3 ( ) ) . thenReturn ( address ) ; org . mockito . Mockito . when ( address . host ( ) ) . thenReturn ( IDENT_6 ) ; java . lang . String result = org . apache . IDENT_0 . transport . rest . vertx . IDENT_1 . element . impl . IDENT_7 . IDENT_8 . METHOD_4 ( param ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . apache . IDENT_0 . transport . rest . vertx . IDENT_1 . METHOD_1 ) { java . util . Set < io . vertx . ext . web . IDENT_9 > IDENT_10 = IDENT_11 . METHOD_5 ( ) . METHOD_6 ( ) ; if ( null == IDENT_10 ) { return org . apache . IDENT_0 . transport . rest . vertx . IDENT_1 . element . impl . IDENT_12 . IDENT_13 ; } java . lang . String result = null ; for ( io . vertx . ext . web . IDENT_9 IDENT_14 : IDENT_10 ) { if ( IDENT_15 . equals ( IDENT_14 . getName ( ) ) ) { result = IDENT_14 . getValue ( ) ; } } if ( null == result ) { return org . apache . IDENT_0 . transport . rest . vertx . IDENT_1 . element . impl . IDENT_12 . IDENT_13 ; } return result ; }
org . junit . Assert . assertEquals ( IDENT_6 , result )