@Test
public void shouldCleanUpLocksFromDeadSessions() throws Exception {
// Use a different repository that supports anonymous logins to make this test cleaner
Map<Option, String> options = new HashMap<Option, String>();
options.put(JcrRepository.Option.ANONYMOUS_USER_ROLES, JcrSession.DNA_ADMIN_PERMISSION);
JcrRepository repository = new JcrRepository(context, connectionFactory, sourceName, new MockObservable(), null,
descriptors, options);
String lockedNodeName = "lockedNode";
JcrSession locker = (JcrSession)repository.login();