@Test
public void testGetNamespacePrefixes() throws RepositoryException {

    String result[] = { "prefix1", "prefix2" };
    expect(session.getNamespacePrefixes()).andReturn(result);
    replay(session);
    replay(sessionFactory);
    assertSame(jcrTemplate.getNamespacePrefixes(), result);
}