private void testRange(int numWorkers, int keySpaceSize, int allowedWorkerDiff, boolean emptyWorkers) {
Configuration conf = new Configuration();
conf.setLong(GiraphConstants.PARTITION_VERTEX_KEY_SPACE_SIZE, keySpaceSize);
SimpleLongRangePartitionerFactory<Writable, Writable> factory =
new SimpleLongRangePartitionerFactory<Writable, Writable>();
factory.setConf(new ImmutableClassesGiraphConfiguration(conf));
ArrayList<WorkerInfo> infos = new ArrayList<WorkerInfo>();
for (int i = 0; i < numWorkers; i++) {
WorkerInfo info = new WorkerInfo();
info.setInetSocketAddress(new InetSocketAddress(8080));