@Test
public void testSourceLocationAwareSchedulingNotAvailable() throws InjectionException {

  final SchedulingConstraint schedulingConstraint = injector
    .getInstance(LocalitySchedulingConstraint.class);
  // Prepare test scenario
  final Task task = CreateTask.withReadablesWithSourceLocations(
    Collections.singletonList(Collections.singletonList(SITE_0)));
  final ExecutorRepresenter e0 = mockExecutorRepresenter(SITE_1);
  final ExecutorRepresenter e1 = mockExecutorRepresenter(SITE_1);
  assertEquals(Collections.emptySet(), Arrays.asList(e0, e1).stream()
    .filter(e -> schedulingConstraint.testSchedulability(e, task))
    .collect(Collectors.toSet()));
}