private void checkNamespaceMapping(
final MatcherContextMock contextMock, final String namespacePrefix,
final String namespaceURI) {
contextMock.expects.getNamespace().returns(namespaceURI);
Matcher matcher = factory.createNamespaceMatcher(namespacePrefix);
MatcherResult result = matcher.matches(contextMock);
assertEquals(MatcherResult.MATCHED, result);
}
}