@Test
	public void testData8() throws IOException {
		// @formatter:off
		BinaryReader br = br(
			(byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 55,
			(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xfe);
		// @formatter:on

		DWARFAttributeValue result = read(br, DW_AT_byte_size, DW_FORM_data8);
		assertTrue("Should be const", result instanceof DWARFNumericAttribute);
		assertEquals("should be 55", 55, ((DWARFNumericAttribute) result).getValue());

		result = read(br, DW_AT_byte_size, DW_FORM_data8);
		assertTrue("Should be const", result instanceof DWARFNumericAttribute);
		// these next two asserts are probably the same test as there isn't a way to
		// simulate unsigned long values
		assertEquals("should be -2", -2, ((DWARFNumericAttribute) result).getValue());
		assertEquals("should be 0xfffffffffffffffe", 0xffff_ffff_ffff_fffeL,
			((DWARFNumericAttribute) result).getUnsignedValue());
	}
Test reading binary representations of DWARF attributes from raw bytes.
Ghidra/Features/Base/src/test/java/ghidra/app/util/bin/format/dwarf/attribs/DWARFAttributeFactoryTest.java