code: public static <V> V runWithMock(EbeanServer mock, Callable<V> test) throws Exception {
  
      return start(mock).run(test);
    }
docs: Run the test runnable using the mock EbeanServer and restoring the original EbeanServer afterward.
  
  @param mock the mock instance that becomes the default EbeanServer
  @param test typically some test code as a callable