ReferenceCourier implements Courier<T> { @Override public T get() { if (instance == null) { throw new NullPointerException(); } return instance; } ReferenceCourier(@Nullable T instance); static ReferenceCourier<T2> empty(); @Override boolean isSet(); @Override T get();  }
@Test( groups = {"fast", "local"}, expectedExceptions = NullPointerException.class) public void testEmpty1Get() throws Exception { empty1.get(); }
@Test( groups = {"fast", "local"}, expectedExceptions = NullPointerException.class) public void testempty2Get() throws Exception { empty2.get(); }