@Test
public void testIgnoringSlot() {

  final Task task = mock(Task.class);
  when(task.getPropertyValue(ResourceSlotProperty.class)).thenReturn(Optional.of(false));
  final Set<ExecutorRepresenter> executorRepresenterList = new HashSet<>(Arrays.asList(a0, a1));
  final Set<ExecutorRepresenter> candidateExecutors = executorRepresenterList.stream()
    .filter(e -> schedulingConstraint.testSchedulability(e, task))
    .collect(Collectors.toSet());
  final Set<ExecutorRepresenter> expectedExecutors = new HashSet<>(Arrays.asList(a0, a1));
  assertEquals(expectedExecutors, candidateExecutors);
}