public static SegmentMapDescription createSegmentMapDescription(AbstractPdb pdb, int flags,
			int ovl, int group, int frame, int segNameIndex, int classNameIndex, long segOffset,
			long segLength) {

		PdbByteWriter writer = new PdbByteWriter();

		writer.putUnsignedShort(flags);
		writer.putUnsignedShort(ovl);
		writer.putUnsignedShort(group);
		writer.putUnsignedShort(frame);
		writer.putUnsignedShort(segNameIndex);
		writer.putUnsignedShort(classNameIndex);
		writer.putUnsignedInt(segOffset);
		writer.putUnsignedInt(segLength);

		SegmentMapDescription segmentMapDescription = new SegmentMapDescription();
		PdbByteReader reader = new PdbByteReader(writer.get());
		try {
			segmentMapDescription.deserialize(reader);
		}
		catch (PdbException e) {
			e.printStackTrace();
			fail("Failed to initialize SegmentMapDescription during parse");
		}

		assertEquals(flags, segmentMapDescription.getFlags());
		assertEquals(ovl, segmentMapDescription.getOvl());
		assertEquals(group, segmentMapDescription.getGroup());
		assertEquals(frame, segmentMapDescription.getFrame());
		assertEquals(segNameIndex, segmentMapDescription.getSegNameIndex());
		assertEquals(classNameIndex, segmentMapDescription.getClassNameIndex());
		assertEquals(segOffset, segmentMapDescription.getSegmentOffset());
		assertEquals(segLength, segmentMapDescription.getLength());

		return segmentMapDescription;
	}
Creates an {@link SegmentMapDescription} from parameters
@param pdb PDB that the SegmentMapDescription belongs to
@param flags WORD (unsigned 16-bit) flags passed in as an int
@param ovl WORD (unsigned 16-bit) ovl passed in as an int
@param group WORD (unsigned 16-bit) group passed in as an int
@param frame WORD (unsigned 16-bit) frame passed in as an int
@param segNameIndex WORD (unsigned 16-bit) segment name index passed in as an int
@param classNameIndex WORD (unsigned 16-bit) class name index passed in as an int
@param segOffset DWORD (unsigned 32-bit) segment offset passed in as an long
@param segLength DWORD (unsigned 32-bit) segment length passed in as an long
@return initialized SegmentMapDescription
Ghidra/Features/PDB/src/test/java/ghidra/app/util/bin/format/pdb2/pdbreader/PdbTestUtils.java