public static TestSuite suiteWhenStandalone(final Class<? extends TestCase> clazz,final String regex,final Set<BufferMode> bufferModes,final TestMode... testModes){
  if (!proxyIndexManagerTestingHasStarted) {
    final Pattern pat=Pattern.compile(regex);
    proxyIndexManagerTestingHasStarted=true;
    final TestSuite suite=new MultiModeTestSuite(clazz.getName(),bufferModes,testModes);
    addMatchingTestsFromClass(suite,clazz,pat);
    return suite;
  }
 else {
    return new TestSuite(clazz);
  }
}

public static TestSuite suiteWhenStandalone ( final Class < ? extends TestCase > clazz , final String regex , final Set < BufferMode > bufferModes , final TestMode ... testModes ) { if ( ! proxyIndexManagerTestingHasStarted ) { final Pattern pat = Pattern . compile ( regex ) ; proxyIndexManagerTestingHasStarted = true ; final TestSuite suite = new MultiModeTestSuite ( clazz . getName ( ) , bufferModes , testModes ) ; addMatchingTestsFromClass ( suite , clazz , pat ) ; return suite ; } else { return new TestSuite ( clazz ) ; } }
call this method to create local testing using one or more proxies . e . g . right clicking in eclipse and running junit tests works . also using this within a testsuite also works .
