Code review comment: There's a compilation error after the parameter type changed to the `CheckpointType` enum.

Code under review:
protected CheckpointingStatistics getTestResponseInstance() throws Exception {

		final CheckpointingStatistics.Counts counts = new CheckpointingStatistics.Counts(1, 2, 3, 4, 5);
		final CheckpointingStatistics.Summary summary = new CheckpointingStatistics.Summary(
			new MinMaxAvgStatistics(1L, 1L, 1L),
			new MinMaxAvgStatistics(2L, 2L, 2L),
			new MinMaxAvgStatistics(3L, 3L, 3L));

		final Map<JobVertexID, TaskCheckpointStatistics> checkpointStatisticsPerTask = new HashMap<>(2);

		checkpointStatisticsPerTask.put(
			new JobVertexID(),
			new TaskCheckpointStatistics(
				1L,
				CheckpointStatsStatus.COMPLETED,
				1L,
				2L,
				3L,
				4L,
				5,
				6));

		checkpointStatisticsPerTask.put(
			new JobVertexID(),
			new TaskCheckpointStatistics(
				1L,
				CheckpointStatsStatus.COMPLETED,
				2L,
				3L,
				4L,
				5L,
				6,
				7));

		final CheckpointStatistics.CompletedCheckpointStatistics completed = new CheckpointStatistics.CompletedCheckpointStatistics(
			1L,
			CheckpointStatsStatus.COMPLETED,
			false,
			42L,
			41L,
			1337L,
			1L,
			0L,
			10,
			10,
			 "Checkpoint",
			Collections.emptyMap(),
			null,
			false);

		final CheckpointStatistics.CompletedCheckpointStatistics savepoint = new CheckpointStatistics.CompletedCheckpointStatistics(
			2L,
			CheckpointStatsStatus.COMPLETED,
			true,
			11L,
			10L,
			43L,
			1L,
			0L,
			9,
			9,
			"Savepoint",
			checkpointStatisticsPerTask,
			"externalPath",
			false);

		final CheckpointStatistics.FailedCheckpointStatistics failed = new CheckpointStatistics.FailedCheckpointStatistics(
			3L,
			CheckpointStatsStatus.FAILED,
			false,
			5L,
			10L,
			4L,
			2L,
			0L,
			11,
			9,
			"Checkpoint",
			Collections.emptyMap(),
			100L,
			"Test failure");

		CheckpointingStatistics.RestoredCheckpointStatistics restored = new CheckpointingStatistics.RestoredCheckpointStatistics(
			4L,
			1445L,
			true,
			"foobar");

		CheckpointStatistics.PendingCheckpointStatistics pending = new CheckpointStatistics.PendingCheckpointStatistics(
			5L,
			CheckpointStatsStatus.IN_PROGRESS,
			false,
			42L,
			41L,
			1337L,
			1L,
			0L,
			10,
			10,
			"Checkpoint",
			Collections.emptyMap()
		);

		final CheckpointingStatistics.LatestCheckpoints latestCheckpoints = new CheckpointingStatistics.LatestCheckpoints(
			completed,
			savepoint,
			failed,
			restored);

		return new CheckpointingStatistics(
			counts,
			summary,
			latestCheckpoints,
			Arrays.asList(completed, savepoint, failed, pending));
	}

Line commented on: "Checkpoint",

Revised code:
protected CheckpointingStatistics getTestResponseInstance() throws Exception {

		final CheckpointingStatistics.Counts counts = new CheckpointingStatistics.Counts(1, 2, 3, 4, 5);
		final CheckpointingStatistics.Summary summary = new CheckpointingStatistics.Summary(
			new MinMaxAvgStatistics(1L, 1L, 1L),
			new MinMaxAvgStatistics(2L, 2L, 2L),
			new MinMaxAvgStatistics(3L, 3L, 3L),
			new MinMaxAvgStatistics(4L, 4L, 4L),
			new MinMaxAvgStatistics(5L, 5L, 5L));

		final Map<JobVertexID, TaskCheckpointStatistics> checkpointStatisticsPerTask = new HashMap<>(2);

		checkpointStatisticsPerTask.put(
			new JobVertexID(),
			new TaskCheckpointStatistics(
				1L,
				CheckpointStatsStatus.COMPLETED,
				1L,
				2L,
				3L,
				4L,
				7,
				8,
				5,
				6));

		checkpointStatisticsPerTask.put(
			new JobVertexID(),
			new TaskCheckpointStatistics(
				1L,
				CheckpointStatsStatus.COMPLETED,
				2L,
				3L,
				4L,
				5L,
				8,
				9,
				6,
				7));

		final CheckpointStatistics.CompletedCheckpointStatistics completed = new CheckpointStatistics.CompletedCheckpointStatistics(
			1L,
			CheckpointStatsStatus.COMPLETED,
			false,
			42L,
			41L,
			1337L,
			1L,
			0L,
			43L,
			44L,
			10,
			10,
			CheckpointType.CHECKPOINT,
			Collections.emptyMap(),
			null,
			false);

		final CheckpointStatistics.CompletedCheckpointStatistics savepoint = new CheckpointStatistics.CompletedCheckpointStatistics(
			2L,
			CheckpointStatsStatus.COMPLETED,
			true,
			11L,
			10L,
			43L,
			1L,
			0L,
			31337L,
			4244L,
			9,
			9,
			CheckpointType.SAVEPOINT,
			checkpointStatisticsPerTask,
			"externalPath",
			false);

		final CheckpointStatistics.FailedCheckpointStatistics failed = new CheckpointStatistics.FailedCheckpointStatistics(
			3L,
			CheckpointStatsStatus.FAILED,
			false,
			5L,
			10L,
			4L,
			2L,
			0L,
			21L,
			22L,
			11,
			9,
			CheckpointType.CHECKPOINT,
			Collections.emptyMap(),
			100L,
			"Test failure");

		CheckpointingStatistics.RestoredCheckpointStatistics restored = new CheckpointingStatistics.RestoredCheckpointStatistics(
			4L,
			1445L,
			true,
			"foobar");

		CheckpointStatistics.PendingCheckpointStatistics pending = new CheckpointStatistics.PendingCheckpointStatistics(
			5L,
			CheckpointStatsStatus.IN_PROGRESS,
			false,
			42L,
			41L,
			1337L,
			1L,
			0L,
			15L,
			16L,
			10,
			10,
			CheckpointType.CHECKPOINT,
			Collections.emptyMap()
		);

		final CheckpointingStatistics.LatestCheckpoints latestCheckpoints = new CheckpointingStatistics.LatestCheckpoints(
			completed,
			savepoint,
			failed,
			restored);

		return new CheckpointingStatistics(
			counts,
			summary,
			latestCheckpoints,
			Arrays.asList(completed, savepoint, failed, pending));
	}