return createSingleNodeExecutorService(name, ExecutorConfig.DEFAULT_POOL_SIZE);
}
private IExecutorService createSingleNodeExecutorService(String name, int poolSize) {
final Config config = new Config();
config.addExecutorConfig(new ExecutorConfig(name, poolSize));
final HazelcastInstance instance = createHazelcastInstance(config);
return instance.getExecutorService(name);
}
@Test(expected = RejectedExecutionException.class)