METHOD_0 ( ) { org . sagebionetworks . repo . model . table . IDENT_0 body = new org . sagebionetworks . repo . model . table . METHOD_1 ( ) ; body . METHOD_2 ( STRING_0 ) ; body . METHOD_3 ( STRING_1 ) ; java . lang . String IDENT_1 = STRING_2 ; when ( IDENT_2 . METHOD_4 ( body ) ) . thenReturn ( IDENT_1 ) ; org . sagebionetworks . repo . model . IDENT_3 . IDENT_4 IDENT_5 = new org . sagebionetworks . repo . model . IDENT_3 . METHOD_5 ( ) ; IDENT_5 . METHOD_6 ( user . getId ( ) ) ; IDENT_5 . METHOD_7 ( STRING_3 ) ; IDENT_5 . METHOD_8 ( body ) ; IDENT_5 . METHOD_9 ( IDENT_6 . IDENT_7 ) ; when ( IDENT_8 . METHOD_10 ( IDENT_1 , user . getId ( ) ) ) . thenReturn ( java . util . Arrays . asList ( IDENT_5 ) ) ; org . sagebionetworks . repo . model . IDENT_3 . METHOD_5 status = manager . METHOD_11 ( user , body ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 , METHOD_12 ( ) ) . METHOD_11 ( METHOD_13 ( ) , any ( org . sagebionetworks . repo . model . IDENT_3 . IDENT_9 . class ) ) ; } METHOD_11 ( org . sagebionetworks . repo . model . IDENT_10 , org . sagebionetworks . repo . model . IDENT_3 . IDENT_9 ) { if ( user == null ) throw new java . lang . IllegalArgumentException ( STRING_4 ) ; if ( body == null ) throw new java . lang . IllegalArgumentException ( STRING_5 ) ; if ( body instanceof org . sagebionetworks . repo . model . IDENT_3 . IDENT_11 ) { org . sagebionetworks . repo . manager . IDENT_3 . IDENT_12 . log . info ( java . lang . String . format ( org . sagebionetworks . repo . manager . IDENT_3 . IDENT_12 . IDENT_13 , user . getId ( ) , IDENT_14 , status . METHOD_14 ( ) ) ) ; return status ; } } } org . sagebionetworks . repo . model . IDENT_3 . METHOD_5 status = IDENT_15 . METHOD_11 ( user . getId ( ) , body ) ; IDENT_16 . METHOD_15 ( status ) ; return status ; }
org . junit . Assert . assertEquals ( IDENT_5 , status )