@Test
public void testNoCoordinator() throws Exception {

	JobCheckpointsHandler handler = new JobCheckpointsHandler(
			mock(ExecutionGraphHolder.class));
	ExecutionGraph graph = mock(ExecutionGraph.class);
	// No coordinator
	when(graph.getCheckpointStatsTracker()).thenReturn(null);
	String response = handler.handleRequest(graph, Collections.<String, String>emptyMap());
	// Expecting empty response
	assertEquals("{}", response);
}