void () { Optional<String> o1 = getOptional(); assert o1.isPresent(); System.out.println(o1.get()); Optional<String> o2 = getOptional(); org.junit.Assert.assertTrue(o2.isPresent()); System.out.println(o2.get()); Optional<String> o3 = getOptional(); org.testng.Assert.assertTrue(o3.isPresent()); System.out.println(o3.get()); }