METHOD_0 ( ) { java . lang . Object value = new java . lang . Object ( ) ; org . IDENT_0 . Result result = org . IDENT_0 . IDENT_1 . when ( IDENT_2 . IDENT_3 , ( ) -> value ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( ) { new org . IDENT_0 . test . METHOD_2 ( org . IDENT_0 . IDENT_4 . class ) . expect ( ( unit ) -> { org . IDENT_0 . IDENT_4 req = unit . get ( . class ) ; expect ( req . METHOD_1 ( "name" ) ) . andReturn ( java . util . Optional . of ( "value" ) ) ; } ) . run ( ( unit ) -> { assertEquals ( java . util . Optional . of ( "value" ) , new org . IDENT_0 . IDENT_4 . METHOD_3 ( unit . get ( . class ) ) . METHOD_1 ( "name" ) ) ; } ) ; }
org . junit . Assert . assertEquals ( value , result . METHOD_1 ( ) . get ( ) )