Map helper = new BeanMap(test.getField("helper").get(null));
final Repository repository =
(Repository) helper.get("repository");
final Credentials superuser =
(Credentials) helper.get("superuserCredentials");
return new ProxyRepository(new RepositoryFactory() {
public Repository getRepository() throws RepositoryException {
return repository;
}