@Test
  public void canBeMocked() {
    LocatorLauncher mockLocatorLauncher = mock(LocatorLauncher.class);
    InternalLocator mockInternalLocator = mock(InternalLocator.class);

    when(mockLocatorLauncher.getLocator()).thenReturn(mockInternalLocator);
    when(mockLocatorLauncher.getId()).thenReturn("ID");

    assertThat(mockLocatorLauncher.getLocator()).isSameAs(mockInternalLocator);
    assertThat(mockLocatorLauncher.getId()).isEqualTo("ID");
  }
Unit tests for {@link LocatorLauncher}.

@since GemFire 7.0
geode-core/src/test/java/org/apache/geode/distributed/LocatorLauncherTest.java