@Test
public void testMultipleExecutorScenario() throws Exception {

  this.props.put(Constants.ConfigurationKeys.USE_MULTIPLE_EXECUTORS, "true");
  final Executor executor1 = this.loader.addExecutor("localhost", 12345);
  final Executor executor2 = this.loader.addExecutor("localhost", 12346);
  final ExecutorManager manager = createExecutorManager();
  final Set<Executor> activeExecutors =
      new HashSet(manager.getAllActiveExecutors());
  Assert.assertArrayEquals(activeExecutors.toArray(), new Executor[]{
      executor1, executor2});
}