}
// Create and start the engine ...
engine = configuration.build();
engine.start();
Repository repository = engine.getRepository("Car Repository");
assertThat(repository, is(notNullValue()));
// Create a session, authenticating using one of the usernames defined by our JAAS policy file(s) ...
Session session = null;
try {
session = repository.login(new SimpleCredentials("superuser", "superuser".toCharArray()));
// Check that the namespace showed up ...
assertThat(session.getNamespacePrefix("http://www.jboss.org/dna/test/1.0"), is("dnatest"));
// Check that some of the node types showed up ...