### Question:
LazyReference { public static <R> LazyReference<R> newReference(final Heap heap, final JsonValue reference, final Class<R> type, final boolean optional) { return new LazyReference<>(checkNotNull(heap), checkNotNull(reference), type, optional); } private  LazyReference(final Heap heap, final JsonValue reference, final Class<T> type, final boolean optional); static LazyReference<R> newReference(final Heap heap,
                                                    final JsonValue reference,
                                                    final Class<R> type,
                                                    final boolean optional); T get();  }### Answer:
@Test(expectedExceptions = NullPointerException.class) public void shouldFailForNullHeap() throws Exception { newReference(null, REFERENCE, String.class, true); }
@Test(expectedExceptions = NullPointerException.class) public void shouldFailForNullJsonValue() throws Exception { newReference(heap, null, String.class, true); }