@Test
public void getNamespaceContextMethod() throws NoSuchMethodException {

	Method method = getClass().getMethod("method");
	NamespaceContext namespaceContext = NamespaceUtils.getNamespaceContext(method);
	assertEquals("method1", namespaceContext.getNamespaceURI("prefix1"));
	assertEquals("method2", namespaceContext.getNamespaceURI(XMLConstants.DEFAULT_NS_PREFIX));
}