private void initializeEmailVerificationSuccess() throws Exception {
    final CountDownLatch mLatch = new CountDownLatch(1);
    mockFactory.setFilename("init_email_ver_success.json");
    emailAttribute.startVerification(
        new InitializeVerificationCallback() {

          @Override
          public void onSuccess() {
            notificationSuccess = true;
            mLatch.countDown();
          }

          @Override
          public void onError(MIDaaSException exception) {
            notificationSuccess = false;
            mLatch.countDown();
          }
        });
    mLatch.await();
    Assert.assertTrue(notificationSuccess);
  }
  private void completeEmailVerificationSuccess() throws Exception {
    final CountDownLatch mLatch = new CountDownLatch(1);
    MIDaaS.setContext(mContext);
    mockFactory.setFilename("complete_email_ver_success.json");
    notificationSuccess = false;
    emailAttribute.completeVerification(
        "1234",
        new CompleteVerificationCallback() {

          @Override
          public void onSuccess() {
            notificationSuccess = true;
            mLatch.countDown();
          }

          @Override
          public void onError(MIDaaSException exception) {
            notificationSuccess = false;
            mLatch.countDown();
          }
        });
    mLatch.await();
    Assert.assertTrue(notificationSuccess);
  }