code: function mockDB() {
    if (!mocked) {
      defaultController = Parse.CoreManager.getRESTController();
      mocked = true;
      Parse.CoreManager.setRESTController(MockRESTController);
    }
  }
docs: Mocks a Parse API server, by intercepting requests and storing/querying data locally
  in an in-memory DB.