@Test
@Disabled
public void testLoadFxmlWithBuilderFactory() throws IOException {

    TestRootControllerPane controllerPane = new TestRootControllerPane();
    Class<TestRootControllerPane> type = TestRootControllerPane.class;
    FXMLLoader loader = new FXMLLoader();
    loader.setBuilderFactory(new TestBuilderFactory(loader.getBuilderFactory()));
    loader.setClassLoader(type.getClassLoader());
    loader.setResources(ResourceBundle.getBundle(type.getPackage().getName()+".Bundle", Locale.getDefault(), type.getClassLoader()));
    loader.setRoot(controllerPane);
    loader.setController(controllerPane);
    String fxmlFileName = "TestRootControllerPane.fxml";
    try (InputStream is = type.getResourceAsStream(fxmlFileName)) {
        if (is == null) {
            throw new FileNotFoundException(fxmlFileName);
        }
        loader.load(is);
    }
}