@Test
public void parseListCompactionTest() throws IOException {

  final ObjectMapper objectMapper = new ObjectMapper();
  Compaction compaction = Compaction.builder()
      .withId("foo")
      .withKeyspace("ks")
      .withTable("t")
      .withProgress(64L)
      .withTotal(128L)
      .withType("Validation")
      .withUnit("unit")
      .build();
  String compactionsJson = objectMapper.writeValueAsString(ImmutableList.of(compaction));
  CompactionStats compactionStats = ClusterFacade.parseCompactionStats(compactionsJson);
  assertEquals(-1L, compactionStats.getPendingCompactions().longValue());
}