@Test
  public void deserializesFromJson() throws IOException, URISyntaxException {
    XenonConfiguration actual =
        fromJson(jsonFixture("fixtures/xenon.json"), XenonConfiguration.class);

    ImmutableMap<String, String> emptyProps = ImmutableMap.of();
    SchedulerConfiguration expectedScheduler =
        new SchedulerConfiguration("local", null, "multi", emptyProps);
    assertThat(actual.getScheduler()).isEqualTo(expectedScheduler);

    SandboxConfiguration expectedSandbox =
        new SandboxConfiguration("file", "/", "/tmp/sandboxes", emptyProps);
    assertThat(actual.getSandbox()).isEqualTo(expectedSandbox);

    ImmutableMap<String, String> prefs =
        ImmutableMap.of("xenon.adaptors.local.queue.multi.maxConcurrentJobs", "4");
    assertThat(actual.getPreferences()).isEqualTo(prefs);
    PollConfiguration expected_poll = new PollConfiguration(500, 3600000, 43200000);
    assertThat(actual.getPoll()).isEqualTo(expected_poll);
  }