@Test
    public void directCopyMatches() throws IOException {
        Path writeFile = Files.createTempFile("writeTest", ".assets");
        try {
            try (SerializedFileWriter writer = new SerializedFileWriter(
                    DataWriters.forFile(writeFile, WRITE))) {
                writer.write(asset);
            }

            assertEquals("Output file must match input file",
                    FileUtils.checksumCRC32(readFile.toFile()),
                    FileUtils.checksumCRC32(writeFile.toFile()));
        } finally {
            Files.deleteIfExists(writeFile);
        }
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-core/src/test/java/info/ata4/test/junity/SerializedFileTest.java