HappyPath<Happy, Sad> sadPath(Sad)

TODO: this is just a generated example

javadoc usage tests

Added in version 2.3.0

Sad case happy path

Sad sad = new Sad();

HappyPath<Happy, Sad> happyPath = HappyPath.sadPath(sad);

assertThat(happyPath.getSad()).isEqualTo(sad);

This produces a happy path biased view of an underlying sad case.