public void isPresent() {
    if (actual == null) {
      failWithActual(simpleFact("expected present optional"));
    } else if (!actual.isPresent()) {
      failWithoutActual(simpleFact("expected to be present"));
    }
  }
@Test
  public void isPresentFailingNull() {
    expectFailureWhenTestingThat(null).isPresent();
    assertFailureKeys("expected present optional", "but was");
  }