assertTrue("Test Directory", directory.isDirectory());
File shapefile = new File(new File(directory, "internal"), "australia.shp");
assertTrue("Sample File", shapefile.isFile());
ServiceExtension factory = new ShpServiceExtension();
Map<String, Serializable> params = factory.createParams(shapefile.toURI().toURL());
service = factory.createService(null, params);
List<IGeoResource> members = (List<IGeoResource>) service
.resources(new NullProgressMonitor());
resource = members.get(0);