### Question:
PrjFiles extends Static { public static void write(final CoordinateReferenceSystem crs, final File file) throws ContentFormatException, IOException { final String wkt = format(crs); try (Writer out = new OutputStreamWriter(new FileOutputStream(file), ENCODING)) { out.write(wkt); out.write('\n'); } } private  PrjFiles(); static CoordinateReferenceSystem read(final File file); static CoordinateReferenceSystem read(final Path file); static CoordinateReferenceSystem read(final URL file); static CoordinateReferenceSystem read(final ReadableByteChannel in, final boolean close); static CoordinateReferenceSystem read(final InputStream in, final boolean close); static CoordinateReferenceSystem read(final BufferedReader in, final boolean close); static void write(final CoordinateReferenceSystem crs, final File file); static void write(final CoordinateReferenceSystem crs, final Path file); static void write(final CoordinateReferenceSystem crs, final WritableByteChannel out); static void write(final CoordinateReferenceSystem crs, final OutputStream out); static void write(final CoordinateReferenceSystem crs, final Writer out);  }### Answer:
@Test public void testWrite() throws IOException { final StringWriter out = new StringWriter(); PrjFiles.write(CommonCRS.WGS84.normalizedGeographic(), out); out.close(); assertEquals(WKT, out.toString()); }
@Test public void testWriteInPath() throws IOException { Path tmpPRJ = Files.createTempFile(null, ".prj"); try { PrjFiles.write(CommonCRS.WGS84.normalizedGeographic(), tmpPRJ); assertTrue(Files.exists(tmpPRJ)); assertTrue(Files.size(tmpPRJ) > 0); assertEquals(WKT, IOUtilities.toString(tmpPRJ)); } finally { Files.deleteIfExists(tmpPRJ); } }