private void readWorldFiles() {
    world1Store = new FlatFileStore<Integer>(world1File, Integer.class);
    world1Store.load();
    world1Map = new StringToUniqueIntegerMap(serverMap, world1Store, minValue, maxValue, "world1");

    world2Store = new FlatFileStore<Integer>(world2File, Integer.class);
    world2Store.load();
    world2Map = new StringToUniqueIntegerMap(serverMap, world2Store, minValue, maxValue, "world2");
  }
 private void fillServerMap() {
   registerWithServerMap(firstKey);
   for (int i = 0; i < (numKeys - 2); i++) {
     registerWithServerMap("middle" + i);
   }
   registerWithServerMap(lastKey);
   assertThat(serverStore.get(lastKey), is(maxValue - 1));
 }
 @Test
 public void lastKeyReturnsMaxValue() {
   fillServerMap();
   assertThat(serverStore.get(lastKey), is(maxValue - 1));
 }
 @Test
 public void firstKeyReturnsMinValue() {
   fillServerMap();
   assertThat(serverStore.get(firstKey), is(minValue));
 }
 @Test
 public void getNonexistingReturnsNull() {
   fillServerMap();
   assertNull(serverStore.get("unusedKey"));
 }