METHOD_0 ( ) { javax . ws . rs . core . Response response = rest . METHOD_1 ( IDENT_0 , IDENT_1 , IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String , java . lang . String , java . lang . String ) { ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . IDENT_4 resource = IDENT_5 . METHOD_2 ( IDENT_0 , IDENT_1 ) ; if ( resource == null ) { return javax . ws . rs . core . Response . status ( ch . IDENT_6 . itc . mobiliar . rest . IDENT_7 . IDENT_8 ) . entity ( new ch . IDENT_6 . itc . mobiliar . rest . exceptions . METHOD_3 ( STRING_0 ) ) . build ( ) ; } ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . IDENT_4 IDENT_9 = ( resource . METHOD_4 ( ) . METHOD_5 ( ) ) ? IDENT_5 . METHOD_6 ( resource ) : resource ; java . lang . Integer IDENT_10 = IDENT_11 . METHOD_7 ( IDENT_1 ) . getId ( ) ; ch . puzzle . itc . mobiliar . business . IDENT_12 . entity . IDENT_13 context = IDENT_14 . METHOD_8 ( IDENT_2 ) ; IDENT_15 . METHOD_9 ( IDENT_16 . IDENT_17 , context , IDENT_18 . IDENT_19 , IDENT_9 . METHOD_10 ( ) , null , STRING_1 ) ; ch . puzzle . itc . mobiliar . business . generator . control . IDENT_20 IDENT_21 ; try { IDENT_21 = IDENT_22 . METHOD_11 ( context . getId ( ) , IDENT_9 . getId ( ) , IDENT_10 , null ) ; } catch ( ch . puzzle . itc . mobiliar . common . exception . IDENT_23 e ) { return javax . ws . rs . core . Response . status ( ch . IDENT_6 . itc . mobiliar . rest . IDENT_7 . IDENT_24 ) . entity ( new ch . IDENT_6 . itc . mobiliar . rest . exceptions . METHOD_3 ( e . getMessage ( ) ) ) . build ( ) ; } if ( IDENT_21 . METHOD_12 ( ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_6 . itc . mobiliar . rest . IDENT_7 . IDENT_24 ) . entity ( new ch . IDENT_6 . itc . mobiliar . rest . exceptions . METHOD_3 ( IDENT_21 . METHOD_13 ( ) ) ) . build ( ) ; } return javax . ws . rs . core . Response . METHOD_14 ( new ch . IDENT_6 . itc . mobiliar . rest . IDENT_25 . METHOD_15 ( IDENT_21 ) ) . build ( ) ; }
org . junit . Assert . assertThat ( response . getStatus ( ) , org . hamcrest . CoreMatchers . is ( Response . Status . IDENT_8 . getStatusCode ( ) ) )