}
private void assertLocalNameAndNamespace( NodeType nodeType,
String expectedLocalName,
String namespacePrefix ) throws RepositoryException {
Namespaced nsed = (Namespaced)nodeType;
assertThat(nsed.getLocalName(), is(expectedLocalName));
assertThat(nsed.getNamespaceURI(), is(session.getNamespaceURI(namespacePrefix)));
}