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