protected Point getViewLocation(AbstractTestVertex v) {

		GraphViewer<AbstractTestVertex, TestEdge> viewer = graphComponent.getPrimaryViewer();
		Point vertexUpperLeftCornerInViewSpace =
			swing(() -> GraphViewerUtils.getVertexUpperLeftCornerInViewSpace(viewer, v));

		return vertexUpperLeftCornerInViewSpace;
	}
Creates a basic test environment that uses a JFrame to house a {@link GraphComponent}, which
itself has a primary and satellite viewer, all initialized with a graph of your setup, 
with reasonable default settings.
Ghidra/Framework/Graph/src/test.slow/java/ghidra/graph/viewer/AbstractVisualGraphTest.java