@Test
public void getTablesToRepairRemoveOneTableTest() throws ReaperException {

  JmxProxy proxy = JmxProxyTest.mockJmxProxyImpl();
  when(proxy.getCassandraVersion()).thenReturn("3.11.4");
  when(context.jmxConnectionFactory.connectAny(Mockito.any(Collection.class))).thenReturn(proxy);
  when(proxy.getTablesForKeyspace(Mockito.anyString()))
          .thenReturn(Sets.newHashSet(
                  Table.builder().withName("table1").withCompactionStrategy(STCS).build(),
                  Table.builder().withName("table2").withCompactionStrategy(STCS).build(),
                  Table.builder().withName("table3").withCompactionStrategy(STCS).build()));
  RepairUnit unit = RepairUnit.builder()
      .clusterName(cluster.getName())
      .keyspaceName("test")
      .blacklistedTables(Sets.newHashSet("table1"))
      .incrementalRepair(false)
      .repairThreadCount(4)
      .build(UUIDs.timeBased());
  assertEquals(Sets.newHashSet("table2", "table3"), service.getTablesToRepair(cluster, unit));
}