title: JUnit Testing in Android Studio with FirebaseAuth?
body: <p>How to create unit tests with LoginPresenter FirebaseAuth</p>
  
  <p>my LoginPresenter</p>
  
  <pre><code>public void loginUsingEmail(String email, String password) {
      if (TextUtils.isEmpty(email)) {
          view.showEmailError();
          return;
      }
  
      if (TextUtils.isEmpty(password)) {
          view.showPasswordError();
          return;
      }
      Log.v("loginUsingEmail","enter");
      auth.signInWithEmailAndPassword(email, password)
              .addOnCompleteListener(view, new OnCompleteListener&lt;AuthResult&gt;() {
                  @Override
                  public void onComplete(@NonNull Task&lt;AuthResult&gt; task) {
                      Log.v("enter auth","enter");
                      if (!task.isSuccessful())
                          view.loginFail(true);
                      else
                          view.loginSuccess();
                  }
              });
  }
  </code></pre>