METHOD_0 ( ) { final IDENT_0 . IDENT_1 . models . IDENT_2 expected = METHOD_1 ( ) ; when ( IDENT_3 . get ( eq ( IDENT_4 ) ) ) . METHOD_2 ( ( IDENT_5 ) -> null ) ; when ( IDENT_6 . METHOD_3 ( eq ( IDENT_4 ) ) ) . METHOD_2 ( ( IDENT_5 ) -> expected ) ; IDENT_0 . IDENT_1 . models . IDENT_2 actual = IDENT_7 . METHOD_3 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_3 , org . mockito . Mockito . times ( 1 ) ) . get ( eq ( IDENT_4 ) ) ; org . mockito . Mockito . verify ( IDENT_3 , org . mockito . Mockito . times ( 1 ) ) . put ( eq ( IDENT_4 ) , eq ( expected ) ) ; org . mockito . Mockito . verify ( IDENT_6 , org . mockito . Mockito . times ( 1 ) ) . METHOD_3 ( eq ( IDENT_4 ) ) ; } METHOD_3 ( java . lang . String ) { try { IDENT_0 . IDENT_1 . models . IDENT_2 IDENT_8 = IDENT_3 . get ( IDENT_4 ) ; if ( IDENT_8 == null ) { IDENT_8 = IDENT_6 . METHOD_3 ( IDENT_4 ) ; IDENT_3 . put ( IDENT_4 , IDENT_8 ) ; } return IDENT_8 ; } catch ( IDENT_0 . IDENT_1 . persistence . IDENT_9 e ) { throw new javax . ws . rs . METHOD_4 ( e . METHOD_5 ( ) ) ; } catch ( IDENT_0 . IDENT_1 . persistence . IDENT_9 e ) { log . error ( e . METHOD_5 ( ) , e ) ; throw new javax . ws . rs . METHOD_6 ( e . METHOD_5 ( ) ) ; } }
org . junit . Assert . assertEquals ( expected , actual )