	@Test public void testCentreOn() {

		final double zoom = 2d;
		final double dx = 300d;
		final double dy = 200d;
		pane.setScrollBarPolicy(ScrollBarPolicy.NEVER);
		pane.zoomTo(zoom, pane.targetPointAtViewportCentre());
		final Transform last = target.captureTransform();
		pane.centreOn(new Point2D(dx, dy));
		final Transform now = target.captureTransform();
		assertThat(now.getTx()).isEqualTo(-last.getTx() - dx * zoom);
		assertThat(now.getTy()).isEqualTo(-last.getTy() - dy * zoom);
	}