@Test
  public void testPrintInfo() {
    final String versionOutput = GemFireVersion.asString();
    System.out.println(versionOutput);

    assertTrue(versionOutput.contains(VersionDescription.PRODUCT_NAME));
    assertTrue(versionOutput.contains(VersionDescription.PRODUCT_VERSION));
    assertTrue(versionOutput.contains(VersionDescription.SOURCE_DATE));
    assertTrue(versionOutput.contains(VersionDescription.SOURCE_REVISION));
    assertTrue(versionOutput.contains(VersionDescription.SOURCE_REPOSITORY));
    assertTrue(versionOutput.contains(VersionDescription.BUILD_ID));
    assertTrue(versionOutput.contains(VersionDescription.BUILD_PLATFORM));
    assertTrue(versionOutput.contains(VersionDescription.BUILD_JAVA_VERSION));
  }
This test prints out the version information obtained from the {@link GemFireVersion} class. It
provides a record of what version of GemFire (and the JDK) was used to run the unit tests.
geode-core/src/test/java/org/apache/geode/internal/GemFireVersionJUnitTest.java