@Test
public void doesNotScheduleRepairWhenClusterExcluded() throws Exception {

  context.config.getAutoScheduling().setExcludedClusters(Arrays.asList(cluster.getName()));
  context.storage.addCluster(cluster);
  clusterRepairAuto.scheduleRepairs(cluster);
  assertThat(context.storage.getAllRepairSchedules()).hasSize(0);
}