METHOD_0 ( ) { final java . lang . String IDENT_0 = STRING_0 ; final java . lang . String IDENT_1 = IDENT_2 . IDENT_3 . resources . impl . IDENT_4 . rest . IDENT_5 . METHOD_1 ( IDENT_6 , IDENT_7 ) ; IDENT_2 . IDENT_3 . models . IDENT_8 expected = new IDENT_2 . IDENT_3 . models . METHOD_2 ( IDENT_6 , IDENT_7 , IDENT_9 . IDENT_10 . IDENT_11 , IDENT_12 , IDENT_0 ) ; when ( IDENT_13 . get ( eq ( IDENT_1 ) ) ) . METHOD_3 ( ( IDENT_14 ) -> expected ) ; IDENT_2 . IDENT_3 . models . METHOD_2 actual = IDENT_15 . METHOD_4 ( IDENT_6 , IDENT_7 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_13 , times ( 1 ) ) . get ( eq ( IDENT_1 ) ) ; org . mockito . Mockito . verify ( IDENT_16 , METHOD_5 ( ) ) . METHOD_4 ( eq ( IDENT_6 ) , eq ( IDENT_7 ) ) ; org . mockito . Mockito . verify ( IDENT_13 , METHOD_5 ( ) ) . put ( eq ( IDENT_1 ) , any ( IDENT_2 . IDENT_3 . models . METHOD_2 . class ) ) ; } METHOD_4 ( java . lang . String , java . lang . String ) { try { java . lang . String IDENT_1 = IDENT_2 . IDENT_3 . resources . impl . IDENT_4 . rest . IDENT_5 . METHOD_1 ( IDENT_6 , IDENT_7 ) ; IDENT_2 . IDENT_3 . models . METHOD_2 IDENT_17 = IDENT_13 . get ( IDENT_1 ) ; if ( IDENT_17 == null ) { IDENT_17 = IDENT_16 . METHOD_4 ( IDENT_6 , IDENT_7 ) ; if ( IDENT_17 != null ) { IDENT_13 . put ( IDENT_1 , IDENT_17 ) ; } } if ( IDENT_17 == null ) { java . lang . String message = STRING_1 ; message = java . lang . String . format ( message , IDENT_6 , IDENT_7 ) ; throw new javax . ws . rs . METHOD_6 ( message ) ; } return IDENT_17 ; } catch ( IDENT_2 . IDENT_3 . persistence . IDENT_18 e ) { log . error ( e . METHOD_7 ( ) , e ) ; throw new javax . ws . rs . METHOD_8 ( e . METHOD_7 ( ) ) ; } }
org . junit . Assert . assertEquals ( expected , actual )