📅  最后修改于: 2022-03-11 14:52:39.563000             🧑  作者: Mango
@Test
public void givenNull_whenCreatesNullable_thenCorrect() {
String name = null;
Optional opt = Optional.ofNullable(name);
assertFalse(opt.isPresent());
}