@Test
public void testGetAttributeNames() {

    final String[] names = new String[]{"test"};
    final Session session = mock(Session.class);
    when(session.getAttributeNames()).thenReturn(names);
    assertArrayEquals(names, new JcrSessionFacade(session, false).getAttributeNames());
}