private void writeAppChangeFile(LocalManagedBufferFile bf) throws IOException {

		LocalBufferFile changeFile = (LocalBufferFile) bf.getSaveChangeDataFile();
		try {
			assertNotNull(changeFile);

			byte[] data = new byte[BUFFER_SIZE];
			DataBuffer buf = new DataBuffer(data);

			Arrays.fill(data, (byte) 0x55);
			buf.setId(0);
			changeFile.put(buf, 0);

			File file = changeFile.getFile();
			changeFile.close();
			changeFile = null;

			assertTrue(file.exists());
		}
		finally {
			if (changeFile != null) {
				try {
					changeFile.close();
				}
				catch (IOException e) {
					// ignore
				}
			}
		}

	}
Test add-to-version control scenario: versioned file is created using private file.
Test results in the creation of private file and version-1 containing:
		Parms: TestParm1=0x321, TestParm2=0x543
		Buffers: 0[10]=0xf0.., 1[11]=0xf1.., 2[-1]=empty
@throws Exception
Ghidra/Framework/DB/src/test/java/db/buffers/VersionedLocalBufferFileTest.java