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 . setName ( STRING_0 ) ; javax . ws . rs . core . Response response = rest . METHOD_2 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ch . IDENT_0 . itc . mobiliar . rest . resources . METHOD_1 ) { ch . puzzle . itc . mobiliar . business . IDENT_3 . entity . IDENT_4 resource ; if ( org . apache . commons . lang . StringUtils . isEmpty ( request . getName ( ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_5 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_3 ( STRING_1 ) ) . build ( ) ; } if ( org . apache . commons . lang . StringUtils . isEmpty ( request . METHOD_4 ( ) ) ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_5 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_3 ( STRING_2 ) ) . build ( ) ; } try { resource = IDENT_6 . METHOD_5 ( ch . puzzle . itc . mobiliar . business . IDENT_7 . entity . IDENT_8 . METHOD_6 ( ) , request . getName ( ) , request . getType ( ) , request . METHOD_4 ( ) ) ; } catch ( ch . puzzle . itc . mobiliar . common . exception . IDENT_9 e ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_5 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_3 ( e . getMessage ( ) ) ) . build ( ) ; } return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . resources . IDENT_10 ) . header ( STRING_3 , ( STRING_4 + ( resource . getName ( ) ) ) ) . build ( ) ; }
org . junit . Assert . assertEquals ( javax . ws . rs . core . Response . Status . IDENT_5 . getStatusCode ( ) , response . getStatus ( ) )