METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( user , STRING_0 ) ) . thenReturn ( document ) ; final javax . ws . rs . core . Response response = resource . store ( request , headers , IDENT_1 , STRING_1 , STRING_0 , body ) ; "<AssertPlaceHolder>" . METHOD_2 ( Status . IDENT_2 . getStatusCode ( ) ) ; final org . mockito . IDENT_3 IDENT_4 = METHOD_3 ( document , IDENT_0 ) ; METHOD_3 . verify ( document ) . METHOD_4 ( now ) ; METHOD_3 . verify ( document ) . METHOD_5 ( IDENT_5 , random , body ) ; METHOD_3 . verify ( IDENT_0 ) . METHOD_6 ( document ) ; verify ( IDENT_0 , METHOD_7 ( ) ) . METHOD_8 ( any ( com . IDENT_6 . IDENT_7 . entities . User . class ) , anyString ( ) , any ( javax . ws . rs . core . IDENT_8 . class ) ) ; } store ( javax . ws . rs . core . IDENT_9 , javax . ws . rs . core . IDENT_10 , com . IDENT_6 . IDENT_7 . auth . IDENT_11 , java . lang . String , java . lang . String , byte [ ] ) { final com . IDENT_6 . IDENT_7 . auth . IDENT_12 session = IDENT_1 . METHOD_9 ( IDENT_13 , IDENT_14 ) ; com . IDENT_6 . IDENT_7 . entities . Document doc = IDENT_0 . METHOD_1 ( session . METHOD_10 ( ) , name ) ; if ( doc == null ) { doc = IDENT_0 . METHOD_8 ( session . METHOD_10 ( ) , name , headers . METHOD_11 ( ) ) ; } else { METHOD_12 ( request , doc ) ; } doc . METHOD_4 ( new org . joda . time . METHOD_13 ( org . joda . time . IDENT_15 . IDENT_16 ) ) ; doc . METHOD_5 ( session . METHOD_14 ( ) , IDENT_17 . get ( ) , body ) ; IDENT_0 . METHOD_6 ( doc ) ; return javax . ws . rs . core . Response . METHOD_15 ( ) . METHOD_16 ( doc . METHOD_17 ( ) ) . build ( ) ; }
org . junit . Assert . assertThat ( response . getStatus ( ) )