context = new ExecutionContext();
pathFactory = context.getValueFactories().getPathFactory();
source = new InMemoryRepositorySource();
source.setName("store");
// Use a connection factory so we can count the number of connections that were made
RepositoryConnectionFactory connectionFactory = new RepositoryConnectionFactory() {
public RepositoryConnection createConnection( String sourceName ) throws RepositorySourceException {
if (source.getName().equals(sourceName)) {
++numberOfConnections;
return source.getConnection();
}