METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; java . lang . String IDENT_2 = STRING_2 ; java . lang . String IDENT_3 = STRING_3 ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . IDENT_5 IDENT_6 = new ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_1 ( ) ; IDENT_6 . setName ( STRING_0 ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . IDENT_7 IDENT_8 = new ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_2 ( ) ; IDENT_8 . METHOD_3 ( IDENT_6 ) ; IDENT_8 . setName ( IDENT_0 ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . IDENT_9 IDENT_10 = new ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_4 ( ) ; IDENT_10 . setName ( IDENT_11 . IDENT_12 . name ( ) ) ; IDENT_8 . METHOD_5 ( IDENT_10 ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_1 IDENT_13 = new ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_1 ( ) ; IDENT_6 . setName ( STRING_2 ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_2 target = new ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_2 ( ) ; target . METHOD_3 ( IDENT_13 ) ; target . setName ( IDENT_2 ) ; ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_4 IDENT_14 = new ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_4 ( ) ; IDENT_14 . setName ( IDENT_11 . IDENT_12 . name ( ) ) ; target . METHOD_5 ( IDENT_10 ) ; when ( IDENT_15 . METHOD_6 ( IDENT_2 , IDENT_3 ) ) . thenReturn ( target ) ; when ( IDENT_15 . METHOD_6 ( IDENT_0 , IDENT_1 ) ) . thenReturn ( IDENT_8 ) ; javax . ws . rs . core . Response response = rest . METHOD_7 ( IDENT_2 , IDENT_3 , IDENT_0 , IDENT_1 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . lang . String , java . lang . String , java . lang . String , java . lang . String ) { ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_2 IDENT_16 = IDENT_17 . METHOD_6 ( IDENT_2 , IDENT_3 ) ; if ( IDENT_16 == null ) { return javax . ws . rs . core . Response . status ( ch . IDENT_18 . itc . mobiliar . rest . resources . IDENT_19 ) . entity ( new ch . IDENT_18 . itc . mobiliar . rest . exceptions . METHOD_8 ( STRING_4 ) ) . build ( ) ; } ch . puzzle . itc . mobiliar . business . IDENT_4 . entity . METHOD_2 IDENT_20 = IDENT_17 . METHOD_6 ( IDENT_0 , IDENT_1 ) ; if ( IDENT_20 == null ) { return javax . ws . rs . core . Response . status ( ch . IDENT_18 . itc . mobiliar . rest . resources . IDENT_19 ) . entity ( new ch . IDENT_18 . itc . mobiliar . rest . exceptions . METHOD_8 ( STRING_5 ) ) . build ( ) ; } if ( ( ( ! ( IDENT_20 . METHOD_9 ( ) . METHOD_10 ( ) ) ) && ( ! ( IDENT_20 . METHOD_9 ( ) . METHOD_11 ( ) ) ) ) || ( ( ! ( IDENT_16 . METHOD_9 ( ) . METHOD_10 ( ) ) ) && ( ! ( IDENT_16 . METHOD_9 ( ) . METHOD_11 ( ) ) ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_18 . itc . mobiliar . rest . resources . IDENT_21 ) . entity ( new ch . IDENT_18 . itc . mobiliar . rest . exceptions . METHOD_8 ( STRING_6 ) ) . build ( ) ; } ch . puzzle . itc . mobiliar . business . IDENT_4 . control . IDENT_22 IDENT_23 ; try { IDENT_23 = IDENT_24 . METHOD_12 ( IDENT_16 . getId ( ) , IDENT_20 . getId ( ) , ch . puzzle . itc . mobiliar . business . IDENT_25 . entity . IDENT_26 . METHOD_13 ( ) ) ; } catch ( ch . puzzle . itc . mobiliar . business . IDENT_25 . entity . IDENT_27 | ch . puzzle . itc . mobiliar . common . exception . IDENT_28 e ) { return javax . ws . rs . core . Response . status ( ch . IDENT_18 . itc . mobiliar . rest . resources . IDENT_21 ) . entity ( new ch . IDENT_18 . itc . mobiliar . rest . exceptions . METHOD_8 ( e . getMessage ( ) ) ) . build ( ) ; } if ( ! ( IDENT_23 . METHOD_14 ( ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_18 . itc . mobiliar . rest . resources . IDENT_21 ) . entity ( new ch . IDENT_18 . itc . mobiliar . rest . exceptions . METHOD_8 ( ( ( STRING_7 + ( IDENT_20 . getName ( ) ) ) + STRING_8 ) ) ) . build ( ) ; } return javax . ws . rs . core . Response . METHOD_15 ( ) . build ( ) ; }
org . junit . Assert . assertEquals ( javax . ws . rs . core . Response . Status . IDENT_21 . getStatusCode ( ) , response . getStatus ( ) )