### Question:
JVM { public String toString() { return System.getProperty("java.runtime.name") + " " + System.getProperty("java.runtime.version") + ": " + System.getProperty("java.vm.name") + " (" + System.getProperty("java.vm.version") + ", " + System.getProperty("java.vm.info") + ") on " + System.getProperty("os.name") + " " + System.getProperty("os.arch") + " " + System.getProperty("os.version"); } private  JVM(); static JVM getInstance(); boolean haveRequisites(Logger logger); boolean isAtLeastVersion(int minimumMajor, int minimumMinor); String toString();  }### Answer:
@Test public void testToString() throws Exception { final String result = JVM.getInstance().toString(); assertTrue(result.indexOf(System.getProperty("java.vm.version")) > 0); assertTrue(result.indexOf(System.getProperty("os.version")) > 0); }