@SuppressWarnings("unchecked")
@Test
public void testGetAttributeNames() {

  RepositoryBackedSession rbs = new RepositoryBackedSession(sessionData, manager, factory);
  rbs.setAttribute("Test", "value");
  rbs.setAttribute("Test2", "value");
  ArrayList<String> names = Collections.list(rbs.getAttributeNames());
  assertThat(names, hasItems("Test", "Test2"));
}