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