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

		byte[] b = new byte[4];
		System.arraycopy(buf, 35, b, 0, b.length);
		conv.getInt(b);

		byte[] newb = new byte[4];
		conv.putInt(newb, 0, 425);

		block.setInt(BigInteger.valueOf(35), 425);

		blockSet.notifyByteEditing(block, BigInteger.valueOf(35), b, newb);
		for (int i = 0; i < 4; i++) {
			assertTrue(blockSet.isChanged(block, BigInteger.valueOf(35 + i), b.length));
		}

		block.setBigEndian(false);
		conv = LittleEndianDataConverter.INSTANCE;

		b = new byte[4];
		System.arraycopy(buf, 35, b, 0, b.length);
		conv.getInt(b);

		newb = new byte[4];
		conv.putInt(newb, 0, 425);

		block.setInt(BigInteger.valueOf(35), 425);

		blockSet.notifyByteEditing(block, BigInteger.valueOf(35), b, newb);
		for (int i = 0; i < 4; i++) {
			assertTrue(blockSet.isChanged(block, BigInteger.valueOf(35 + i), b.length));
		}

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