this.stubClass = stubClass;
}
public void testSetup() throws Exception {
// replace the existing helper with our parametrized version
RepositoryHelperPool helperPool = RepositoryHelperPoolImpl.getInstance();
// drain helpers
previous.addAll(Arrays.asList(helperPool.borrowHelpers()));
// replace with our own stub
helperPool.returnHelper(getRepositoryHelper());
}