BpelFactory implements IBpelFactory { public NamespaceContext createNamespaceContext() { SimpleNamespaceContext ctx = new SimpleNamespaceContext(); ctx.addNamespace("bpel", NAMESPACE_BPEL_2_0); return ctx; }  String getNamespace(); @Override IProcess createProcess(); AbstractActivity<?> createWrapper(TActivity child, IActivityContainer parent); @Override IProcess loadProcess(InputStream in); NamespaceContext createNamespaceContext(); static final BpelFactory INSTANCE; }
@Test public void testCreateNamespaceContext() throws Exception { NamespaceContext ctx = BpelFactory.INSTANCE.createNamespaceContext(); String bpelNamespace = BpelFactory.INSTANCE.getNamespace(); assertNotNull(bpelNamespace); assertEquals(bpelNamespace, ctx.getNamespaceURI("bpel")); assertEquals("bpel", ctx.getPrefix(bpelNamespace)); }