METHOD_0 ( ) { ch . IDENT_0 . itc . mobiliar . rest . IDENT_1 . IDENT_2 IDENT_3 = new ch . IDENT_0 . itc . mobiliar . rest . IDENT_1 . METHOD_1 ( null , STRING_0 , null , ch . puzzle . itc . mobiliar . business . security . entity . IDENT_4 . IDENT_5 , 1 , null , null , null , null ) ; when ( rest . IDENT_6 . METHOD_2 ( STRING_0 , null , ch . puzzle . itc . mobiliar . business . security . entity . IDENT_4 . IDENT_5 . name ( ) , 1 , null , null , null , null , false , true ) ) . METHOD_3 ( new ch . puzzle . itc . mobiliar . common . exception . METHOD_4 ( STRING_1 ) ) ; javax . ws . rs . core . Response response = rest . METHOD_5 ( IDENT_3 , false , true ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_1 . METHOD_1 , boolean , boolean ) { java . lang . Integer id ; if ( ( request . getId ( ) ) != null ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_7 . IDENT_8 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_6 ( STRING_2 ) ) . build ( ) ; } if ( ( request . METHOD_7 ( ) ) == null ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_7 . IDENT_8 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_6 ( STRING_3 ) ) . build ( ) ; } try { id = IDENT_6 . METHOD_2 ( request . METHOD_8 ( ) , request . METHOD_9 ( ) , request . METHOD_7 ( ) . getName ( ) , request . METHOD_10 ( ) , request . METHOD_11 ( ) , request . METHOD_12 ( ) , request . METHOD_13 ( ) , request . METHOD_14 ( ) , IDENT_9 , IDENT_10 ) ; } catch ( ch . puzzle . itc . mobiliar . common . exception . METHOD_4 e ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_7 . IDENT_8 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_6 ( e . getMessage ( ) ) ) . build ( ) ; } if ( id == null ) { return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_7 . IDENT_11 ) . entity ( new ch . IDENT_0 . itc . mobiliar . rest . exceptions . METHOD_6 ( STRING_4 ) ) . build ( ) ; } return javax . ws . rs . core . Response . status ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_7 . IDENT_12 ) . header ( STRING_5 , ( STRING_6 + id ) ) . build ( ) ; }
org . junit . Assert . assertEquals ( ch . IDENT_0 . itc . mobiliar . rest . IDENT_7 . IDENT_8 . getStatusCode ( ) , response . getStatus ( ) )