@Test
public void isItOkToRepairTest() {

  assertFalse(SegmentRunner.okToRepairSegment(false, true, DatacenterAvailability.ALL));
  assertFalse(SegmentRunner.okToRepairSegment(false, false, DatacenterAvailability.ALL));
  assertTrue(SegmentRunner.okToRepairSegment(true, true, DatacenterAvailability.ALL));
  assertTrue(SegmentRunner.okToRepairSegment(false, true, DatacenterAvailability.LOCAL));
  assertFalse(SegmentRunner.okToRepairSegment(false, false, DatacenterAvailability.LOCAL));
  assertTrue(SegmentRunner.okToRepairSegment(true, true, DatacenterAvailability.LOCAL));
  assertFalse(SegmentRunner.okToRepairSegment(false, true, DatacenterAvailability.EACH));
  assertFalse(SegmentRunner.okToRepairSegment(false, false, DatacenterAvailability.EACH));
  assertTrue(SegmentRunner.okToRepairSegment(true, true, DatacenterAvailability.EACH));
}