### Question:
Name implements Supplier<String> { public static Name of(String name) { return new Name(name); } private  Name(String value); @Override String get(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Name of(String name);  }### Answer:
@Test public void shouldReturnErrorWhenTheValueIsNull() { assertThrows(NullPointerException.class, () -> { Name.of(null); }); }