@Test
  public void fromJsonWithValidJsonStringReturnsServerStateToStringHasStatusMessage()
      throws JsonProcessingException {
    // given: valid json string
    statusDescription = AbstractLauncher.Status.STARTING.getDescription();
    String jsonString = createStatusJson();

    // when: passed to fromJson
    ServerLauncher.ServerState value = fromJson(jsonString);

    String toString = value.toString();
    assertThat(toString.contains(TO_STRING_STATUS_MESSAGE)).isTrue();

  }
Unit tests for {@link ServerLauncher.ServerState}.
geode-core/src/test/java/org/apache/geode/distributed/ServerStateTest.java