@Before
  public void setup() throws Exception {
    ShadowLog.stream = System.out;

    mServer = new MockWebServer();

    mServer.setDispatcher(NCMBDispatcher.dispatcher);
    mServer.start();
    mScriptUrl = mServer.getUrl("/").toString() + "2015-09-01/script";
    NCMB.initialize(
        RuntimeEnvironment.application.getApplicationContext(), "appKey", "cliKey", null, null);

    Robolectric.getBackgroundThreadScheduler().pause();
    Robolectric.getForegroundThreadScheduler().pause();

    mCallbackFlag = false;
  }
  @Before
  public void setup() throws Exception {
    // create mocServer
    mServer = new MockWebServer();
    mServer.setDispatcher(NCMBDispatcher.dispatcher);
    mServer.start();

    // initialize
    NCMB.initialize(
        RuntimeEnvironment.application.getApplicationContext(),
        "appKey",
        "cliKey",
        mServer.getUrl("/").toString(),
        null);

    // log stream
    ShadowLog.stream = System.out;

    Robolectric.getBackgroundThreadScheduler().pause();
    Robolectric.getForegroundThreadScheduler().pause();

    callbackFlag = false;
  }