private ByteViewerComponent getView(String name) {
		List<ByteViewerComponent> views = runSwing(() -> panel.getViewList());
		for (ByteViewerComponent viewer : views) {
			if (viewer.getName().equals(name)) {
				return viewer;
			}
		}

		fail("Cannot find view '" + name + "'");
		return null;
	}
Basic tests for the byte view plugin
Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin1Test.java