builder.setNamespaceURI(TEST_URI);
builder.add("the_geo", Geometry.class);
SimpleFeatureType featureType = builder.buildFeatureType();
StructuredSelection selection1 = new StructuredSelection(SimpleFeatureBuilder.build(featureType, DEFAULT_ATTS, ID));
IContributionItem item = processor.getEditFeatureAction(selection1);
assertEquals(MATCH_ON_TYPE_NAME, item.getId());
item = checkItems(selection1, item);
assertSame(item.getId(), processor.getEditFeatureAction(selection1).getId());
MenuManager editWith = (MenuManager) processor.getEditWithFeatureMenu(selection1);
item = editWith.findUsingPath(item.getId());
assertTrue(((ActionContributionItem) item).getAction().isChecked());
SimpleFeatureTypeBuilder builder2 = new SimpleFeatureTypeBuilder();
builder2.setName(TEST_TYPE);
builder2.setNamespaceURI(INVALID_TEST_URI);
builder2.add("geo", Geometry.class);
SimpleFeatureType featureType2 = builder2.buildFeatureType();
StructuredSelection selection2 = new StructuredSelection(SimpleFeatureBuilder.build(featureType2, DEFAULT_ATTS, ID));
IContributionItem item2 = processor.getEditFeatureAction(selection2);
assertEquals(MATCH_GEOM_NAMED_GEO, item2.getId());
item2 = checkItems(selection2, item2);
assertSame(item2.getId(), processor.getEditFeatureAction(selection2).getId());
editWith = (MenuManager) processor.getEditWithFeatureMenu(selection1);
item2 = editWith.findUsingPath(item2.getId());
assertTrue( ((ActionContributionItem)item2).getAction().isChecked() );
assertSame(item.getId(), processor.getEditFeatureAction(selection1).getId());
}