assertThat(configReposSource, is(notNullValue()));
assertThat(configReposSource, is(instanceOf(InMemoryRepositorySource.class)));
assertThat(configReposSource.getName(), is(JcrConfiguration.DEFAULT_CONFIGURATION_SOURCE_NAME));
InMemoryRepositorySource configSource = (InMemoryRepositorySource)configReposSource;
assertThat(configSource.getDefaultWorkspaceName(), is(JcrConfiguration.DEFAULT_WORKSPACE_NAME));
Graph graph = engine.getGraph(JcrConfiguration.DEFAULT_CONFIGURATION_SOURCE_NAME);
assertThat(graph, is(notNullValue()));
assertThat(graph.getNodeAt("/"), is(notNullValue()));
assertThat(graph.getNodeAt("/dna:sources"), is(notNullValue()));
assertThat(graph.getNodeAt("/dna:sources/Source2"), hasProperty(DnaLexicon.DESCRIPTION, "description"));
assertThat(graph.getNodeAt("/dna:repositories/JCR Repository"), hasProperty(DnaLexicon.SOURCE_NAME, "Source2"));
// Get the repository ...
JcrRepository repository = engine.getRepository("JCR Repository");
assertThat(repository, is(notNullValue()));
}