@Test
	public void testData2() throws IOException {
		BinaryReader br = br((byte) 0, (byte) 55, (byte) 0xff, (byte) 0xfe);

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

		result = read(br, DW_AT_byte_size, DW_FORM_data2);
		assertTrue("Should be const", result instanceof DWARFNumericAttribute);
		assertEquals("should be -2", -2, ((DWARFNumericAttribute) result).getValue());
		assertEquals("should be fffe", 0xfffe, ((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