@Test
public void displaysExplicitBlacklistedCompactionStrategies() throws Exception {

  context.config.setBlacklistTwcsTables(true);
  when(proxy.getKeyspaces()).thenReturn(Lists.newArrayList(keyspace));
  when(proxy.getTablesForKeyspace(keyspace)).thenReturn(
          Sets.newHashSet(
                  Table.builder().withName("table1")
                          .withCompactionStrategy("org.apache.cassandra.db.compaction.TimeWindowCompactionStrategy")
                          .build(),
                  Table.builder().withName("table2")
                          .withCompactionStrategy("org.apache.cassandra.db.compaction.DateTieredCompactionStrategy")
                          .build(),
                  Table.builder().withName("table3")
                          .withCompactionStrategy("org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy")
                          .build()));
  RepairRunResource resource = new RepairRunResource(context);
  Response response = addRepairRun(resource,
      uriInfo,
      clustername,
      keyspace,
      Sets.newHashSet("table1"),
      OWNER,
      "",
      SEGMENT_CNT,
      NODES,
      BLACKLISTED_TABLES,
      REPAIR_THREAD_COUNT);
  assertTrue(response.getEntity().toString(), response.getEntity() instanceof RepairRunStatus);
  RepairRunStatus repairRunStatus = (RepairRunStatus) response.getEntity();
  assertFalse("Blacklisted shouldn't contain 'table1'", repairRunStatus.getBlacklistedTables().contains("table1"));
  assertFalse("Blacklisted shouldn't contain 'table2'", repairRunStatus.getBlacklistedTables().contains("table2"));
  assertFalse("Blacklisted shouldn't contain 'table3'", repairRunStatus.getBlacklistedTables().contains("table3"));
  assertTrue("ColumnFamilies should contain 'table1'", repairRunStatus.getColumnFamilies().contains("table1"));
  assertFalse("ColumnFamilies shouldn't contain 'table2'", repairRunStatus.getColumnFamilies().contains("table2"));
  assertFalse("ColumnFamilies shouldn't contain 'table3'", repairRunStatus.getColumnFamilies().contains("table3"));
}