@Override
 public void start(Stage primaryStage) throws IOException, URISyntaxException, QueryException {
   this.primaryStage = primaryStage;
   anchor = new AnchorPane();
   VBox vbox = new VBox(locationBar(), anchor);
   primaryStage.setScene(new Scene(vbox, 800, 600));
   Map<String, String> parameters = getParameters().getNamed();
   application =
       new ObjectMapper(new YAMLFactory())
           .readValue(
               Utils.resolveResource(getClass(), parameters.get("app")), GraphqlApplication.class);
   endpoint = ClientBuilder.newClient().target(application.getEndpoint().toURI());
   push(new PageContext(application.getRoot()));
   primaryStage.show();
 }
 @Test
 public void testSnapshotGenerator() throws Exception {
   Configuration config =
       Configuration.fromYaml(getClass().getResourceAsStream("/db-configuration.yml"));
   config.set(model.create());
   URL resource = Utils.resolveResourceURL(getClass(), "/thing.1.json");
   assertNotNull(resource);
   List<URL> toLoad = Arrays.asList(resource);
   WorkspaceSnapshot.load(model.create(), toLoad);
   File cloneFileName = new File("target/thing.1.clone.json");
   cloneFileName.delete();
   List<Export> exports = Arrays.asList(new Export(THING_URI, cloneFileName));
   WorkspaceSnapshotGenerator generator = new WorkspaceSnapshotGenerator(config, exports);
   generator.execute();
   assertTrue("Clone did not generate", cloneFileName.exists());
 }