@Test
public void doesNotScheduleRepairWhenKeyspaceHasNoTable() throws Exception {

  context.storage.addCluster(cluster);
  when(jmxProxy.getKeyspaces()).thenReturn(Lists.newArrayList("keyspace1"));
  when(jmxProxy.getTablesForKeyspace("keyspace1")).thenReturn(Sets.newHashSet());
  clusterRepairAuto.scheduleRepairs(cluster);
  assertThat(context.storage.getAllRepairSchedules()).hasSize(0);
}