@Test
	public void testReorderViewsSaveState() throws Exception {

		loadViews("Ascii", "Octal");

		final JTableHeader columnHeader = (JTableHeader) findContainer(panel, JTableHeader.class);
		// move column 1 to 0
		runSwing(() -> {
			TableColumnModel columnModel = columnHeader.getColumnModel();
			columnModel.moveColumn(3, 2);
		});
		List<String> names = panel.getViewNamesInDisplayOrder();

		env.saveRestoreToolState();
		List<String> newNames = panel.getViewNamesInDisplayOrder();
		assertEquals(names, newNames);
	}
Basic tests for the byte view plugin
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin1Test.java