@Test
public void testGetAttributeNames() {

    String result[] = { "some node" };
    expect(session.getAttributeNames()).andReturn(result);
    replay(session);
    replay(sessionFactory);
    assertSame(jcrTemplate.getAttributeNames(), result);
}