@Override
			public void modifyPrivate(ProgramDB program) throws Exception {
				DataTypeManager dtm = program.getDataTypeManager();

				Union union =
					(Union) dtm.getDataType(new CategoryPath("/Category1/Category2"), "CoolUnion");
				union.pack(2);

				assertEquals(8, union.getComponent(0).getLength());
				assertEquals(2, union.getComponent(1).getLength());
				assertEquals(4, union.getComponent(2).getLength());
				assertEquals(96, union.getComponent(3).getLength());
				assertEquals(4, union.getComponent(4).getLength());
				assertEquals(96, union.getLength());
				assertEquals(2, union.getAlignment());
			}
Data type merge tests for aligned data types.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/merge/datatypes/DataTypeMerge6Test.java