@Test
	public void testStr() throws IOException {
		// @formatter:off
		BinaryReader br = br(
			/* str1 */ (byte) 'a', (byte) 'b', (byte) 0,
			/* str2 */ (byte) 'c', (byte) 0,
			/* str3 */ (byte) 'x', (byte) 'y', (byte) '\n', (byte) 0,
			/* guard byte for test */ (byte) 0xff);
		// @formatter:on
		DWARFAttributeValue result = read(br, DW_AT_name, DW_FORM_string);
		assertTrue("Should be string", result instanceof DWARFStringAttribute);
		assertEquals("ab", ((DWARFStringAttribute) result).getValue(null));

		result = read(br, DW_AT_name, DW_FORM_string);
		assertTrue("Should be string", result instanceof DWARFStringAttribute);
		assertEquals("c", ((DWARFStringAttribute) result).getValue(null));

		result = read(br, DW_AT_name, DW_FORM_string);
		assertTrue("Should be string", result instanceof DWARFStringAttribute);
		assertEquals("Test reading nullterm string with non-printable chars", "xy\n",
			((DWARFStringAttribute) result).getValue(null));

		assertEquals("guard byte", (byte) 0xff, br.readNextByte());
	}
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