METHOD_0 ( ) { com . IDENT_0 . database . IDENT_1 . IDENT_2 IDENT_3 = new com . IDENT_0 . database . IDENT_1 . METHOD_1 ( "test" , "test" , STRING_0 , STRING_1 , STRING_2 ) ; IDENT_3 . METHOD_2 ( new com . IDENT_0 . database . IDENT_1 . IDENT_4 . METHOD_3 ( ) { public java . lang . String METHOD_4 ( ) { return STRING_3 ; } public java . lang . String METHOD_5 ( ) { return STRING_4 ; } @ com . IDENT_0 . database . IDENT_1 . Override public java . lang . String METHOD_6 ( ) { return STRING_5 ; } } ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String ) { if ( IDENT_5 == null ) { throw new com . IDENT_0 . lang . IDENT_6 . METHOD_7 ( STRING_6 ) ; } java . util . regex . IDENT_7 m = com . IDENT_0 . database . IDENT_1 . IDENT_8 . IDENT_9 . matcher ( IDENT_5 ) ; if ( ! ( m . find ( ) ) ) { if ( ! ( IDENT_5 . startsWith ( STRING_7 ) ) ) { return com . IDENT_0 . database . IDENT_1 . IDENT_8 . parse ( ( STRING_7 + IDENT_5 ) ) ; } else { java . util . regex . IDENT_7 IDENT_10 = com . IDENT_0 . database . IDENT_1 . IDENT_8 . IDENT_11 . matcher ( IDENT_5 ) ; if ( IDENT_10 . find ( ) ) { java . lang . String user = IDENT_10 . group ( 2 ) ; java . lang . String IDENT_12 = IDENT_10 . group ( 4 ) ; java . lang . String IDENT_13 = IDENT_10 . group ( 5 ) ; java . lang . String IDENT_14 = IDENT_10 . group ( 6 ) ; final java . lang . String IDENT_15 = IDENT_10 . group ( 8 ) ; final java . lang . String IDENT_16 = IDENT_10 . group ( 9 ) ; final java . lang . String IDENT_17 = IDENT_10 . group ( INT_0 ) ; if ( ( ( user == null ) || ( IDENT_13 == null ) ) || ( IDENT_14 == null ) ) { throw new com . IDENT_0 . lang . IDENT_6 . METHOD_7 ( ( STRING_8 + IDENT_5 ) ) ; } com . IDENT_0 . database . IDENT_1 . IDENT_18 url = new com . IDENT_0 . database . IDENT_1 . METHOD_8 ( user , IDENT_12 , IDENT_13 , IDENT_14 ) ; if ( ( IDENT_15 != null ) && ( IDENT_16 != null ) ) { url . METHOD_2 ( new com . IDENT_0 . database . IDENT_1 . IDENT_4 . METHOD_3 ( ) { public java . lang . String METHOD_4 ( ) { return IDENT_16 ; } public java . lang . String METHOD_5 ( ) { return IDENT_15 ; } @ com . IDENT_0 . database . IDENT_1 . Override public java . lang . String METHOD_6 ( ) { return IDENT_17 ; } } ) ; } return url ; } throw new com . IDENT_0 . lang . IDENT_6 . METHOD_7 ( ( STRING_9 + IDENT_5 ) ) ; } } java . lang . String host = m . group ( 5 ) ; java . lang . String IDENT_19 = m . group ( 7 ) ; if ( ( ( host != null ) && ( host . startsWith ( STRING_10 ) ) ) && ( "/" . equals ( IDENT_19 ) ) ) { return com . IDENT_0 . database . IDENT_1 . IDENT_8 . METHOD_9 ( m ) ; } else if ( ( ( host != null ) && ( ! ( host . startsWith ( STRING_10 ) ) ) ) && ( STRING_11 . equals ( IDENT_19 ) ) ) { return com . IDENT_0 . database . IDENT_1 . IDENT_8 . METHOD_10 ( m ) ; } else { throw new com . IDENT_0 . lang . IDENT_6 . METHOD_7 ( STRING_12 ) ; } }
org . junit . Assert . assertEquals ( IDENT_3 , com . IDENT_0 . database . IDENT_1 . IDENT_8 . parse ( IDENT_3 . serialize ( ) ) )