void () { Application app = ApplicationManager.getApplication(); if (app == null || !app.isUnitTestMode()) throw new IllegalStateException(); myTestStarted = false; myShuttingDown = true; myVMs.forEach((__, vm) -> shutdownProcess(vm, true)); myVMs.clear(); }