public class NamespaceContextImplTest extends TestCase {
public void testNsContext() throws Exception {
AbstractApplicationContext springContext =
new ClassPathXmlApplicationContext("org/apache/servicemix/eip/support/nscontext.xml");
Object objNsContext = springContext.getBean("nsContext");
assertNotNull(objNsContext);
assertTrue(objNsContext instanceof NamespaceContextImpl);
NamespaceContextImpl nsContext = (NamespaceContextImpl) objNsContext;
assertEquals("urn:test", nsContext.getNamespaceURI("test"));
assertEquals("test", nsContext.getPrefix("urn:test"));