@Test
	public void testGetLong() throws Exception {
		block.setBigEndian(true);
		DataConverter conv = BigEndianDataConverter.INSTANCE;

		for (int i = 0; i < 10; i++) {
			byte[] b = new byte[8];
			System.arraycopy(buf, i + 8, b, 0, b.length);
			assertEquals(conv.getLong(b), block.getLong(BigInteger.valueOf(i + 8)));
		}

		for (int i = 0; i < 10; i++) {
			byte[] b = new byte[8];
			System.arraycopy(buf, i + 12, b, 0, b.length);
			assertEquals(conv.getLong(b), block.getLong(BigInteger.valueOf(i + 12)));
		}

		block.setBigEndian(false);
		conv = LittleEndianDataConverter.INSTANCE;
		for (int i = 0; i < 10; i++) {
			byte[] b = new byte[8];
			System.arraycopy(buf, i + 8, b, 0, b.length);
			assertEquals(conv.getLong(b), block.getLong(BigInteger.valueOf(i + 8)));
		}
		for (int i = 0; i < 10; i++) {
			byte[] b = new byte[8];
			System.arraycopy(buf, i + 12, b, 0, b.length);
			assertEquals(conv.getLong(b), block.getLong(BigInteger.valueOf(i + 12)));
		}

	}
Tests for the file implementation of a ByteBlockSet and ByteBlock.
Ghidra/Features/ByteViewer/src/test/java/ghidra/app/plugin/core/byteviewer/FileByteBlockTest.java