@Test
  public void jvmArgumentsStartsOnNewLineInToStringWhenStarting() {
    TestLauncher.TestState status = launcher.status();

    String result = status.toString();
    List<String> lines = Arrays.asList(StringUtils.split(result, System.lineSeparator()));

    String jvmArguments = null;
    for (String line : lines) {
      if (line.contains(TO_STRING_JVM_ARGUMENTS)) {
        jvmArguments = line;
        break;
      }
    }

    assertThat(jvmArguments)
        .as(TO_STRING_JVM_ARGUMENTS + " line in " + lines)
        .isNotNull()
        .startsWith(TO_STRING_JVM_ARGUMENTS);
  }
Unit tests for {@link AbstractLauncher.ServiceState}. Tests marshalling of ServiceState to and
from JSON.

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