this.stubClass = stubClass;
}
public void testSetup() throws Exception {
// replace the existing helper with our parametrized version
RepositoryHelperPool helperPool = RepositoryHelperPoolImpl.getInstance();
// drain helpers
helperPool.borrowHelpers();
// replace with our own stub
Properties props = new Properties();
props.load(getClass().getClassLoader().getResourceAsStream(RepositoryStub.STUB_IMPL_PROPS));
props.put(RepositoryStub.PROP_STUB_IMPL_CLASS, stubClass);
helperPool.returnHelper(new RepositoryHelper(props));
}