getResource ( ) { it . IDENT_0 . IDENT_1 . dal . entity . IDENT_2 IDENT_3 = it . IDENT_0 . IDENT_1 . controller . IDENT_4 . METHOD_0 ( ) ; it . IDENT_0 . IDENT_1 . dal . entity . IDENT_5 IDENT_6 = it . IDENT_0 . IDENT_1 . controller . IDENT_4 . METHOD_1 ( IDENT_3 ) ; org . mockito . Mockito . when ( IDENT_7 . METHOD_2 ( IDENT_3 . getId ( ) ) ) . thenReturn ( IDENT_3 ) ; org . mockito . Mockito . when ( IDENT_8 . METHOD_3 ( IDENT_6 . getId ( ) , IDENT_3 . getId ( ) ) ) . thenReturn ( java . util . Optional . of ( IDENT_6 ) ) ; it . IDENT_0 . IDENT_1 . dal . entity . IDENT_5 IDENT_9 = service . getResource ( IDENT_6 . getId ( ) , IDENT_3 . getId ( ) ) ; "<AssertPlaceHolder>" ; } getResource ( java . lang . String , java . lang . String ) { it . IDENT_0 . IDENT_1 . dal . entity . IDENT_2 IDENT_3 = IDENT_10 . METHOD_2 ( IDENT_11 ) ; it . IDENT_0 . IDENT_1 . utils . IDENT_12 . METHOD_4 ( IDENT_3 . getId ( ) ) ; return IDENT_8 . METHOD_3 ( IDENT_13 , IDENT_11 ) . METHOD_5 ( ( ) -> new it . IDENT_0 . IDENT_1 . exception . http . METHOD_6 ( java . lang . String . format ( STRING_0 , IDENT_13 , IDENT_11 ) ) ) ; }
org . junit . Assert . assertEquals ( IDENT_6 , IDENT_9 )