assertThat(pair.getSourceName(), is(expectedSourceName));
assertThat(pair.getWorkspaceName(), is(expectedWorkspaceName));
}
protected JcrSession createSession() throws Exception {
LoginContext login = new LoginContext("dna-jcr", new UserPasswordCallbackHandler("superuser", "superuser".toCharArray()));
login.login();
Subject subject = login.getSubject();
JcrSession session = (JcrSession)Subject.doAsPrivileged(subject, new PrivilegedExceptionAction<Session>() {