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

		DWARFAttributeValue result = read(br, DW_AT_byte_size, DW_FORM_ref1);
		assertTrue("Should be ref", result instanceof DWARFNumericAttribute);
		assertEquals("should be 55 + cuOffset", 55 + cu.getStartOffset(),
			((DWARFNumericAttribute) result).getValue());

		result = read(br, DW_AT_byte_size, DW_FORM_ref1);
		assertTrue("Should be ref", result instanceof DWARFNumericAttribute);
		assertEquals("should be fe + cuOffset", 0xfe + cu.getStartOffset(),
			((DWARFNumericAttribute) result).getValue());
	}
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