METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . domain . model . IDENT_2 IDENT_3 = new org . IDENT_0 . IDENT_1 . domain . model . METHOD_1 ( ) ; when ( IDENT_4 . METHOD_2 ( "foo" ) ) . thenReturn ( java . util . Optional . of ( IDENT_3 ) ) ; org . IDENT_0 . IDENT_1 . domain . model . METHOD_1 result = IDENT_5 . METHOD_3 ( "foo" ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String ) { return IDENT_6 . METHOD_2 ( IDENT_7 ) . METHOD_4 ( null ) ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( IDENT_3 ) )