The following lines of code results in the divider at 50%, not at 25% as specified initially:
splitPane.setDividerPositions(0.25);
splitPane.getItems().setAll(new Group(), new Group());
splitPane.getItems().set(1, new Group());
splitPane.setDividerPositions(0.25);
splitPane.getItems().setAll(new Group(), new Group());
splitPane.getItems().set(1, new Group());