+ "</gridset>"
+ "</tiles>"
+ "</geopackage>");
Object result = parse(GPKG.geopkgtype);
assertTrue(result instanceof GeoPackageProcessRequest);
GeoPackageProcessRequest request = (GeoPackageProcessRequest) result;
assertNotNull(request.getRemove());
assertTrue(request.getRemove());
assertTrue(request.getPath().toString().equalsIgnoreCase("file://test"));
assertEquals(2, request.getLayerCount());
assertTrue(request.getLayer(0) instanceof GeoPackageProcessRequest.FeaturesLayer);
GeoPackageProcessRequest.FeaturesLayer features = (GeoPackageProcessRequest.FeaturesLayer) request.getLayer(0);
assertEquals("f1", features.getIdentifier());
assertEquals("features1", features.getName());
assertEquals("features1 description", features.getDescription());
assertEquals("featuretypename", features.getFeatureType().getLocalPart());
assertEquals(2, features.getPropertyNames().size());
assertTrue(features.getPropertyNames().contains(new QName("http://www.opengis.net/gpkg", "property1", "")));
assertTrue(features.getPropertyNames().contains(new QName("http://www.opengis.net/gpkg", "property2", "")));
assertTrue(features.getFilter() instanceof PropertyIsEqualTo);
PropertyIsEqualTo filter = (PropertyIsEqualTo) features.getFilter();
assertTrue(filter.getExpression1() instanceof PropertyName);
assertTrue(filter.getExpression2() instanceof Literal);
assertEquals("propertyx", ((PropertyName) filter.getExpression1()).getPropertyName());
assertEquals("999", ((Literal) filter.getExpression2()).getValue());
assertTrue(request.getLayer(0) instanceof GeoPackageProcessRequest.FeaturesLayer);
GeoPackageProcessRequest.TilesLayer tiles = (GeoPackageProcessRequest.TilesLayer) request.getLayer(1);
assertEquals("t1", tiles.getIdentifier());
assertEquals("tiles1", tiles.getName());
assertEquals("tiles1 description", tiles.getDescription());
assertEquals("EPSG:4326", tiles.getSrs().toString());
assertEquals("png", tiles.getFormat());