/** Executes a block of code in a running server. */
 public static void running(TestServer server, final Runnable block) {
   synchronized (PlayRunners$.MODULE$.mutex()) {
     try {
       start(server);
       block.run();
     } finally {
       stop(server);
     }
   }
 }
 /** Executes a block of code in a running application. */
 public static void running(FakeApplication fakeApplication, final Runnable block) {
   synchronized (PlayRunners$.MODULE$.mutex()) {
     try {
       start(fakeApplication);
       block.run();
     } finally {
       stop(fakeApplication);
     }
   }
 }