@Test(expected = IllegalArgumentException.class)
  @Category(IntegrationTest.class)
  public void testMoreWorkersThanMapSlots() throws Exception {
    HadoopUtils.setupLocalRunner(conf);

    // find a large enough tile bounds
    TileBounds tb = new TileBounds(2764, 1365, 2878, 1479);
    Bounds bounds = TMSUtils.tileToBounds(tb, zoomLevel, tileSize);
    TiledInputFormatContext ifContext =
        new TiledInputFormatContext(
            zoomLevel,
            tileSize,
            new HashSet<String>(),
            bounds.convertNewToOldBounds(),
            new Properties());
    ifContext.save(conf);

    CostDistanceWorkersConfiguration.getNumWorkers(metadata, conf);
  }