LazyValue implements Supplier<T> { public boolean hasValue() { return value != null; }  boolean hasValue(); @Override T get();  }
@Test public void testHasValue() { LazyValue<String> lazyValue = create(); assertFalse(lazyValue.hasValue()); lazyValue.get(); assertTrue(lazyValue.hasValue()); }