@Ignore @Test public void setCurrentPageIndexAndNavigateWithMouse() { pagination.setPageCount(25); pagination.setPageFactory( new Callback<Integer, Node>() { @Override public Node call(Integer pageIndex) { Node n = createPage(pageIndex); return n; } }); root.setPrefSize(400, 400); root.getChildren().add(pagination); show(); root.impl_reapplyCSS(); root.layout(); tk.firePulse(); assertTrue(pagination.isFocused()); double xval = (pagination.localToScene(pagination.getLayoutBounds())).getMinX(); double yval = (pagination.localToScene(pagination.getLayoutBounds())).getMinY(); scene.impl_processMouseEvent( MouseEventGenerator.generateMouseEvent(MouseEvent.MOUSE_PRESSED, xval + 170, yval + 380)); tk.firePulse(); assertEquals(3, pagination.getCurrentPageIndex()); }