METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 host = METHOD_1 ( ) ; when ( IDENT_4 . METHOD_2 ( anyString ( ) ) ) . thenReturn ( null ) ; when ( IDENT_4 . METHOD_3 ( anyString ( ) ) ) . thenReturn ( null ) ; com . IDENT_0 . IDENT_1 . as . data . IDENT_5 IDENT_6 = new com . IDENT_0 . IDENT_1 . as . data . METHOD_4 ( 1 , STRING_0 , STRING_1 , STRING_2 , STRING_3 , STRING_4 ) ; com . IDENT_0 . IDENT_1 . as . data . METHOD_4 IDENT_7 = new com . IDENT_0 . IDENT_1 . as . data . METHOD_4 ( 2 , STRING_5 , STRING_6 , STRING_2 , STRING_7 , STRING_8 ) ; when ( IDENT_8 . METHOD_5 ( anyString ( ) , anyString ( ) , anyString ( ) ) ) . thenReturn ( IDENT_6 ) ; when ( IDENT_8 . METHOD_6 ( anyString ( ) , anyString ( ) , anyString ( ) , anyString ( ) ) ) . thenReturn ( IDENT_7 ) ; java . lang . String response = IDENT_9 . METHOD_7 ( host ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( com . IDENT_0 . IDENT_1 . as . business . IDENT_3 ) { java . lang . String IDENT_10 = null ; java . lang . String location = null ; java . lang . String IDENT_11 = null ; java . util . HashMap < java . lang . String , ? extends com . IDENT_0 . IDENT_12 . IDENT_13 . data . IDENT_14 > IDENT_15 = null ; try { IDENT_11 = java . net . IDENT_16 . METHOD_8 ( host . METHOD_9 ( ) . toString ( ) ) . METHOD_10 ( ) ; if ( ! ( IDENT_11 . equalsIgnoreCase ( host . METHOD_11 ( ) . toString ( ) ) ) ) { throw new com . IDENT_0 . IDENT_12 . as . common . METHOD_12 ( IDENT_17 . IDENT_18 , host . METHOD_9 ( ) . toString ( ) , host . METHOD_11 ( ) . toString ( ) ) ; } METHOD_13 ( host ) ; METHOD_14 ( host ) ; log . info ( STRING_9 0 ) ; com . IDENT_0 . IDENT_1 . as . data . IDENT_19 IDENT_20 = new com . IDENT_0 . IDENT_1 . as . data . METHOD_15 ( ) ; IDENT_20 . METHOD_16 ( STRING_10 ) ; IDENT_20 . METHOD_17 ( null ) ; IDENT_20 . METHOD_18 ( host . METHOD_19 ( ) ) ; if ( ( host . METHOD_9 ( ) ) != null ) { IDENT_20 . setName ( host . METHOD_9 ( ) . toString ( ) ) ; } if ( ( host . METHOD_11 ( ) ) != null ) { IDENT_20 . METHOD_20 ( host . METHOD_11 ( ) . toString ( ) ) ; } if ( ( host . METHOD_21 ( ) ) != null ) { IDENT_20 . METHOD_22 ( host . METHOD_21 ( ) ) ; } else { throw new com . IDENT_0 . IDENT_12 . as . common . METHOD_12 ( IDENT_17 . IDENT_21 , host . METHOD_9 ( ) . toString ( ) , host . METHOD_11 ( ) . toString ( ) ) ; } if ( METHOD_23 ( host . METHOD_24 ( ) . getName ( ) ) ) { if ( ! ( host . METHOD_19 ( ) . toLowerCase ( ) . contains ( STRING_11 ) ) ) { IDENT_10 = METHOD_25 ( IDENT_20 , host ) ; java . security . IDENT_22 . IDENT_23 IDENT_24 = com . IDENT_0 . IDENT_1 . util . IDENT_25 . IDENT_26 . METHOD_26 ( IDENT_10 ) ; IDENT_24 . METHOD_27 ( ) ; java . io . InputStream IDENT_27 = new java . io . METHOD_28 ( com . IDENT_0 . IDENT_1 . util . IDENT_28 . METHOD_29 ( STRING_12 ) ) ; java . security . IDENT_22 . IDENT_23 IDENT_29 = com . IDENT_0 . IDENT_1 . util . IDENT_25 . IDENT_26 . METHOD_30 ( org . apache . commons . io . IDENT_30 . toByteArray ( IDENT_27 ) ) ; org . apache . commons . io . IDENT_30 . METHOD_31 ( IDENT_27 ) ; IDENT_29 . METHOD_27 ( ) ; IDENT_24 . verify ( IDENT_29 . METHOD_32 ( ) ) ; } } else { IDENT_15 = METHOD_33 ( IDENT_20 , host ) ; log . info ( STRING_13 ) ; location = METHOD_34 ( IDENT_15 ) ; } com . IDENT_0 . IDENT_1 . IDENT_31 . IDENT_32 factory = new com . IDENT_0 . IDENT_1 . IDENT_31 . METHOD_35 ( ) ; com . IDENT_0 . IDENT_1 . IDENT_31 . IDENT_33 IDENT_31 = factory . METHOD_36 ( IDENT_20 ) ; log . info ( STRING_14 , IDENT_20 . METHOD_37 ( ) , ( ( IDENT_20 . METHOD_38 ( ) ) == null ? STRING_15 : IDENT_20 . METHOD_38 ( ) . length ) ) ; java . util . Map < java . lang . String , java . lang . String > attributes = IDENT_31 . METHOD_39 ( ) ; java . lang . String IDENT_34 = attributes . get ( STRING_9 1 ) ; if ( ( ! ( attributes . isEmpty ( ) ) ) && ( IDENT_34 != null ) ) IDENT_20 . METHOD_40 ( IDENT_34 . toLowerCase ( ) . trim ( ) ) ; log . debug ( STRING_9 ) ; java . util . HashMap < java . lang . String , ? extends com . IDENT_0 . IDENT_12 . IDENT_13 . data . IDENT_14 > IDENT_35 = METHOD_33 ( IDENT_20 , host ) ; java . util . List < com . IDENT_0 . IDENT_1 . as . data . IDENT_36 > IDENT_37 = null ; if ( IDENT_38 . METHOD_41 ( ) . contains ( com . IDENT_0 . IDENT_1 . as . business . IDENT_39 . IDENT_40 ) ) { if ( IDENT_35 != null ) { com . IDENT_0 . IDENT_12 . IDENT_13 . data . IDENT_41 IDENT_42 = ( ( com . IDENT_0 . IDENT_12 . IDENT_13 . data . IDENT_41 ) ( IDENT_35 . get ( com . IDENT_0 . IDENT_1 . as . business . IDENT_39 . IDENT_40 ) ) ) ; METHOD_42 ( IDENT_42 , IDENT_20 , host , IDENT_34 ) ; log . info ( STRING_9 2 ) ; java . lang . String IDENT_43 = host . METHOD_43 ( ) ; IDENT_37 = METHOD_44 ( IDENT_38 , IDENT_35 , IDENT_43 ) ; } } else { log . info ( STRING_16 ) ; } IDENT_44 = METHOD_45 ( host ) ; IDENT_38 = METHOD_46 ( host ) ; METHOD_47 ( IDENT_20 , host , IDENT_10 , location , IDENT_15 , IDENT_37 , IDENT_44 , IDENT_38 ) ; METHOD_48 ( host , IDENT_31 . METHOD_39 ( ) , IDENT_20 ) ; } catch ( com . IDENT_0 . IDENT_12 . as . common . METHOD_12 IDENT_45 ) { throw IDENT_45 ; } catch ( com . IDENT_0 . IDENT_1 . crypto . IDENT_46 e ) { throw new com . IDENT_0 . IDENT_12 . as . common . METHOD_12 ( e , IDENT_17 . IDENT_47 , ( ( e . METHOD_49 ( ) ) == null ? e . getMessage ( ) : e . METHOD_49 ( ) . getMessage ( ) ) ) ; } catch ( java . lang . Exception e ) { log . debug ( STRING_9 3 ) ; e . printStackTrace ( ) ; log . debug ( STRING_17 ) ; throw new com . IDENT_0 . IDENT_12 . as . common . METHOD_12 ( e ) ; } return STRING_18 ; }
org . junit . Assert . assertTrue ( response . equalsIgnoreCase ( STRING_18 ) )