@Test
public void testToOptional() {

    assertTrue("success is present", Result.success("success").toOptional().isPresent());
    assertFalse("failure is not present", Result.failure("failure").toOptional().isPresent());
}