### Question:
NamedSink implements Sink { public String getName() { if (this.name == null) { this.name = computeDefaultName(this.getClass()); } return this.name; } NamedSink(String name);  NamedSink(); String getName();  }### Answer:
@Test public void defaultName() { NamedSink sink = new CustomSink(); String name = sink.getName(); assertThat(name, is("customSink")); }
@Test public void shortName() { NamedSink sink = new Z(); String name = sink.getName(); assertThat(name, is("z")); }