@Test
public void testGetOrElse() {

    final String defaultValue = "defaultValue";
    assertNotEquals("success gets non-default",
            defaultValue, Result.success("success").getOrElse(() -> defaultValue));
    assertEquals("failure gets default",
            defaultValue, Result.failure("failure").getOrElse(() -> defaultValue));
}