private PolicyFactory policyFactory;
private InterfaceContractMapper mapper;
@Override
public void setUp() throws Exception {
ModelFactoryExtensionPoint factories = new DefaultModelFactoryExtensionPoint();
ContributionFactory contributionFactory = new DefaultContributionFactory();
factories.addFactory(contributionFactory);
assemblyFactory = new DefaultAssemblyFactory();
factories.addFactory(assemblyFactory);
scaBindingFactory = new SCABindingFactoryImpl();
factories.addFactory(scaBindingFactory);
policyFactory = new DefaultPolicyFactory();
factories.addFactory(policyFactory);
mapper = new InterfaceContractMapperImpl();
inputFactory = XMLInputFactory.newInstance();
staxProcessors = new DefaultStAXArtifactProcessorExtensionPoint(new DefaultModelFactoryExtensionPoint());
staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance());
NodeImplementationFactory nodeFactory = new NodeImplementationFactoryImpl();
factories.addFactory(nodeFactory);
NodeImplementationProcessor nodeProcessor = new NodeImplementationProcessor(factories);
staxProcessors.addArtifactProcessor(nodeProcessor);
ConfiguredNodeImplementationProcessor configuredNodeProcessor = new ConfiguredNodeImplementationProcessor(factories);
staxProcessors.addArtifactProcessor(configuredNodeProcessor);