@Test
	public void testReorderViews() throws Exception {
		loadViews("Ascii", "Octal");

		List<String> names = panel.getViewNamesInDisplayOrder();
		assertEquals("Hex", names.get(0));
		assertEquals("Octal", names.get(1));
		assertEquals("Ascii", names.get(2));

		final JTableHeader columnHeader = (JTableHeader) findContainer(panel, JTableHeader.class);
		// move column 3 to 2
		runSwing(() -> {
			TableColumnModel columnModel = columnHeader.getColumnModel();
			columnModel.moveColumn(3, 2);
		});

		names = panel.getViewNamesInDisplayOrder();
		assertEquals("Hex", names.get(0));
		assertEquals("Ascii", names.get(1));
		assertEquals("Octal", names.get(2));

		// move column 2 to 1
		runSwing(() -> {
			TableColumnModel columnModel = columnHeader.getColumnModel();
			columnModel.moveColumn(2, 1);
		});
		names = panel.getViewNamesInDisplayOrder();
		assertEquals("Ascii", names.get(0));
		assertEquals("Hex", names.get(1));
		assertEquals("Octal", names.get(2));

	}
Basic tests for the byte view plugin
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin1Test.java