@Before
  public void setUp() throws Exception {
    disconnectFromDS();
    System.setProperty(PROPERTY_TEST_PREFIX, getUniqueName() + "-");

    providerCache = mock(Cache.class);
    InternalResourceManager internalResourceManager = mock(InternalResourceManager.class);
    when(providerCache.getResourceManager()).thenReturn(internalResourceManager);
    when(internalResourceManager.allOfStartupTasks()).thenReturn(completedFuture(null));
    TestServerLauncherCacheProvider.setCache(providerCache);
  }
Extracted from {@link ServerLauncherLocalIntegrationTest}. This tests the same mechanism used by
Spring Data GemFire/Geode.

<p>
ServerLauncher.start fails to configure server with Spring
geode-core/src/integrationTest/java/org/apache/geode/distributed/ServerLauncherWithProviderRegressionTest.java