I have a Java method that returns an Optional. I\'d like to write an easy-to-read unit test for it that asserts that
the returned Optional has a value (i.e.
Why don’t you use isPresent() and get()?
isPresent()
get()