@Before
public void setUp() throws Exception {
Assume.assumeTrue(GDALUtilities.isGDALAvailable());
GeoTiffServiceExtension fac = new GeoTiffServiceExtension();
URL url = Data.getResource(GeoTiffServiceTest.class, TIFF_1);
GeoTiffFormatFactorySpi factory = GeoTiffServiceExtension.getFactory();
GeoTiffFormat format = (GeoTiffFormat) factory.createFormat();
try {
ID id = new ID(url);
File file = id.toFile();
format.accepts(file);
} catch (RuntimeException ex) {
ex.printStackTrace();
}
service = fac.createService(url, fac.createParams(url));
}