@Test
	void testArbitraryHeaderDataIsKeptAfterExport() throws IOException {
		// Read a regular ZIP file and then pre-pend a lot of junk data to the front of it
		Random random = new Random(2410L);
		byte[] zipBytes = Files.readAllBytes(Paths.get("src/testFixtures/resources/name-difference.zip"));
		byte[] junkBytes = new byte[(int) Math.pow(2, 16)];
		random.nextBytes(junkBytes);
		byte[] concatJunkThenZip = Bytes.concat(junkBytes, zipBytes);

		// Import the data with the junk in the front
		WorkspaceResource resource = importer.importResource(ByteSources.wrap(concatJunkThenZip));
		BasicWorkspace workspace = new BasicWorkspace(resource);

		// Export it, and the junk should still be in the front, and the zip should still be in the back
		ByteArrayWorkspaceExportConsumer bytesExport = new ByteArrayWorkspaceExportConsumer();
		new WorkspaceExportOptions(WorkspaceOutputType.FILE, bytesExport).create().export(workspace);
		byte[] output = bytesExport.getOutput();

		// Verify the junk is still in the front of the output.
		assertNotNull(output, "Failed to export workspace to archive");
		assertEquals(0, Bytes.indexOf(output, junkBytes), "Failed to re-append prefix junk data to archive");

		// Verify the ZIP contents appear after the junk
		byte[] zipBytesHead = Arrays.copyOf(zipBytes, 0x30);
		byte[] outBytesHead = Arrays.copyOfRange(output, junkBytes.length, junkBytes.length + 0x30);
		for (int i = 0; i < 4; i++) {
			assertEquals(zipBytesHead[i], outBytesHead[i], "Mismatch where normal ZIP is supposed to be appended");
		}
		String zipHeadName = new String(zipBytesHead, StandardCharsets.ISO_8859_1).substring(30, 47);
		String outHeadName = new String(outBytesHead, StandardCharsets.ISO_8859_1).substring(30, 47);
		assertEquals("SomethingElse.bin", outHeadName, "Mismatch in outputs expected first ZIP entry name");
		assertEquals(zipHeadName, outHeadName, "Mismatch where normal ZIP entry for 'SomethingElse.bin' is supposed to be");
	}
There's a lombok fabric mod which bundles some classes with tampered names. The file contents are normal classes.
When we re-export the workspace we need to ensure the classes are written back to where they originally came from.
recaf-core/src/test/java/software/coley/recaf/services/workspace/io/WorkspaceExporterTest.java