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