features[1]=SimpleFeatureBuilder.build(ft,new Object[]{line[1], attrValues[1]}, Integer.toString(1));
//FeatureFactory ff = new FeatureFactory();
IGeoResource resource = MapTests.createGeoResource(features, true);
Map map = MapTests.createNonDynamicMapAndRenderer(resource, new Dimension(500,512));
ValidateNullZero isValidAttr = new ValidateNullZero();
// test the dialog
Dialog dialog = isValidAttr.getDialog(Display.getDefault().getActiveShell(), ((ILayer) map.getLayersInternal().get(0)).getSchema());
dialog.setBlockOnOpen(false);
dialog.open();
// check the default xPath
assertEquals(isValidAttr.xPath,"geom"); // first entry in attributes //$NON-NLS-1$
//set a new xPath