@org.junit.Test
public void testSPI() {
//
// Create private context helper with private context factory.
//
EFeatureTestsContextHelper eHelper =
new EFeatureTestsContextHelper(new EFeatureContextFactory(), false, false);
EFeatureContextFactory eFactory = EFeatureFactoryFinder.getContextFactory();
assertNotNull("EFeatureFactoryFinder failure, " +
"default EFeatureContextFactory instance not found", eFactory);
assertNotNull("SPI failure, EFeatureContextFactory instance not found", eFactory);
eFactory = eHelper.eContextFactory();
assertNotNull("SPI failure, EFeatureContextFactory instance not found", eFactory);
EFeatureContext eContext = eHelper.eContext();
EFeatureContextInfo eInfo = eContext.eStructure();
assertState(eInfo,false,false,false);
assertStatus(eInfo.validate(),EFeatureStatus.SUCCESS);
assertState(eInfo,true,true,false);
assertStructure("EFeatureContext structure mismatch",eInfo);