@Test
public void test() throws InjectionException {

  final SchedulingPolicy schedulingPolicy = Tang.Factory.getTang().newInjector()
    .getInstance(MinOccupancyFirstSchedulingPolicy.class);
  final ExecutorRepresenter a0 = mockExecutorRepresenter(1);
  final ExecutorRepresenter a1 = mockExecutorRepresenter(2);
  final ExecutorRepresenter a2 = mockExecutorRepresenter(2);
  final Task task = mock(Task.class);
  final List<ExecutorRepresenter> executorRepresenterList = Arrays.asList(a0, a1, a2);
  assertEquals(a0, schedulingPolicy.selectExecutor(executorRepresenterList, task));
}