METHOD_0 ( ) { ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_1 IDENT_2 = new ch . IDENT_0 . itc . mobiliar . rest . resources . METHOD_1 ( ) ; IDENT_2 . METHOD_2 ( STRING_0 ) ; IDENT_2 . METHOD_3 ( STRING_1 ) ; java . lang . String IDENT_3 = STRING_2 ; ch . puzzle . itc . mobiliar . business . IDENT_4 . control . IDENT_5 IDENT_6 = new ch . puzzle . itc . mobiliar . business . IDENT_4 . control . METHOD_4 ( IDENT_3 ) ; IDENT_6 . METHOD_5 ( ) . add ( STRING_3 ) ; org . mockito . Mockito . when ( IDENT_7 . METHOD_6 ( IDENT_3 , IDENT_2 . METHOD_7 ( ) , IDENT_2 . METHOD_8 ( ) , ch . puzzle . itc . mobiliar . business . IDENT_8 . entity . IDENT_9 . METHOD_9 ( ) ) ) . thenReturn ( IDENT_6 ) ; javax . ws . rs . core . Response response = rest . METHOD_10 ( IDENT_2 , IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_10 ( ch . IDENT_0 . itc . mobiliar . rest . resources . METHOD_1 , java . lang . String ) { ch . puzzle . itc . mobiliar . business . IDENT_4 . control . METHOD_4 IDENT_6 ; if ( org . apache . commons . lang . StringUtils . isEmpty ( request . METHOD_7 ( ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_10 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_11 ( STRING_4 ) ) . build ( ) ; } if ( org . apache . commons . lang . StringUtils . isEmpty ( request . METHOD_8 ( ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_10 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_11 ( STRING_5 ) ) . build ( ) ; } try { IDENT_6 = IDENT_11 . METHOD_6 ( IDENT_3 , request . METHOD_7 ( ) , request . METHOD_8 ( ) , ch . puzzle . itc . mobiliar . business . IDENT_8 . entity . IDENT_9 . METHOD_9 ( ) ) ; } catch ( ch . puzzle . itc . mobiliar . business . IDENT_8 . entity . IDENT_12 | ch . puzzle . itc . mobiliar . common . exception . IDENT_13 e ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_10 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_11 ( e . getMessage ( ) ) ) . build ( ) ; } if ( ! ( IDENT_6 . METHOD_12 ( ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_10 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_11 ( STRING_6 ) ) . build ( ) ; } return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_14 ) . header ( STRING_7 , ( ( ( STRING_8 + ( IDENT_6 . METHOD_13 ( ) ) ) + "/" ) + ( request . METHOD_7 ( ) ) ) ) . build ( ) ; }
org . junit . Assert . assertEquals ( javax . ws . rs . core . Response . Status . IDENT_10 . getStatusCode ( ) , response . getStatus ( ) )