private void createFile() throws IOException {

		file = createTempFileForTest(".bin");

		FileOutputStream fos = new FileOutputStream(file);
		buf = new byte[100];
		for (int i = 0; i < buf.length; i++) {
			buf[i] = (byte) i;
		}
		fos.write(buf);
		fos.close();
	}
Tests for the file implementation of a ByteBlockSet and ByteBlock.
Ghidra/Features/ByteViewer/src/test/java/ghidra/app/plugin/core/byteviewer/FileByteBlockTest.java