@Test
public void testJsonGeneration() throws Exception {

	long refreshInterval = 12345;
	final ZonedDateTime zonedDateTime = ZonedDateTime.now();
	final DashboardConfiguration dashboardConfiguration = DashboardConfiguration.from(refreshInterval, zonedDateTime);
	String json = DashboardConfigHandler.createConfigJson(dashboardConfiguration);
	JsonNode result = ArchivedJobGenerationUtils.MAPPER.readTree(json);
	Assert.assertEquals(refreshInterval, result.get("refresh-interval").asLong());
	Assert.assertEquals(dashboardConfiguration.getTimeZoneName(), result.get("timezone-name").asText());
	Assert.assertEquals(dashboardConfiguration.getTimeZoneOffset(), result.get("timezone-offset").asInt());
	Assert.assertEquals(dashboardConfiguration.getFlinkVersion(), result.get("flink-version").asText());
	Assert.assertEquals(dashboardConfiguration.getFlinkRevision(), result.get("flink-revision").asText());
}