### Question:
ToFile implements Destination { @Override @SneakyThrows public void write(final @NonNull Text line) { Files.writeString( this.file.toPath(), line.asString() + System.lineSeparator() ); } ToFile(final String path);  ToFile(final @NonNull File file); @Override @SneakyThrows void write(final @NonNull Text line);  }### Answer:
@Test(expected = NullPointerException.class) @SuppressWarnings("ConstantConditions") public void writeDoesNotAllowNull() throws IOException { new ToFile( this.tmp.newFile() ).write(null); }