docs: public void hasValue(long expected) {
      if (actual() == null) {
        failWithActual("expected an optional with value", expected);
      } else if (!actual().isPresent()) {
        failWithoutActual(fact("expected to have value", expected), simpleFact("but was absent"));
      } else {
        checkNoNeedToDisplayBothValues("getAsLong()").that(actual().getAsLong()).isEqualTo(expected);
      }
    }