@Test
public void shouldAllowCreatingNewWorkspacesByDefault() throws Exception {

    // Verify the workspace does not exist yet ...
    try {
        repository.login("new-workspace");
    } catch (NoSuchWorkspaceException e) {
        // expected
    }
    JcrSession session1 = repository.login();
    assertThat(session1.getRootNode(), is(notNullValue()));
    session1.getWorkspace().createWorkspace("new-workspace");
    // Now create a session to that workspace ...
    JcrSession session2 = repository.login("new-workspace");
    assertThat(session2.getRootNode(), is(notNullValue()));
}