persiter.write(new ByteArrayInputStream(((ByteArrayOutputStream)saveStream).toByteArray()));
IBindingFactory factory = BindingDirectory.getFactory(RepositoryServiceConfiguration.class);
IUnmarshallingContext uctx = factory.createUnmarshallingContext();
RepositoryServiceConfiguration storedConf =
(RepositoryServiceConfiguration)uctx.unmarshalDocument(persiter.read(), null);
for (int i = 0; i < theadsCount; i++)
{
// test if respository has been created
ManageableRepository repository = threads[i].getRepository();
assertNotNull(repository);
// check configuration in persiter
storedConf.getRepositoryConfiguration(repository.getConfiguration().getName());
// check configuration in RepositoryServic
assertNotNull(repositoryService.getConfig().getRepositoryConfiguration(
repository.getConfiguration().getName()));