@Test(expected = IllegalArgumentException.class)
  public void testGeoIllegalFileUrl2() throws Exception {
    final Configuration configuration = new Configuration();
    configuration.setConfigurationFile(File.createTempFile("xyz", ".yaml"));

    Template template = new Template();
    template.setConfiguration(configuration);

    GeotiffLayer.GeotiffParam param = new GeotiffLayer.GeotiffParam();
    param.url =
        "file://../" + CreateMapProcessorFlexibleScaleBBoxGeoJsonTest.BASE_DIR + "/geojson.json";
    new GeotiffLayer.Plugin().parse(template, param);
  }
  @Test(expected = IllegalFileAccessException.class)
  public void testGeoIllegalFileUrl() throws Exception {
    final File file =
        AbstractMapfishSpringTest.getFile(
            CreateMapProcessorFlexibleScaleAndCenterGeoTiffTest.class,
            CreateMapProcessorFlexibleScaleAndCenterGeoTiffTest.BASE_DIR + "sampleGeoTiff.tif");
    final Configuration configuration = new Configuration();
    configuration.setConfigurationFile(File.createTempFile("xyz", ".yaml"));

    Template template = new Template();
    template.setConfiguration(configuration);

    GeotiffLayer.GeotiffParam param = new GeotiffLayer.GeotiffParam();
    param.url = file.toURI().toURL().toString();
    new GeotiffLayer.Plugin().parse(template, param);
  }