@Test
public void testGetNamespaceURI() throws Exception {

    Session delegate = mock(Session.class);
    SessionFacade<Session> facade = getFacade(delegate);
    final String prefix = NamespaceRegistry.PREFIX_JCR;
    final String uri = NamespaceRegistry.NAMESPACE_JCR;
    when(delegate.getNamespaceURI(anyString())).thenReturn(null);
    when(delegate.getNamespaceURI(prefix)).thenReturn(uri);
    assertNull("should be null", facade.getNamespaceURI(""));
    assertSame("should be same", uri, facade.getNamespaceURI(prefix));
}