title: changing test cases from junit to mockito in android app
body: <p>i am trying to test out an email field in login screen. i want to change the following code using mockito. can it be done. pls help??</p>
  <pre><code>class EmailValidatorTest {
  
      @Test
      fun emailValidator_CorrectEmailSimple_ReturnsGood() {
          val email = &quot;name@email.com&quot;
          assertThat(EmailPasswordChecker.getEmailState(email)).isEqualTo(EmailState.GOOD)
      }
  
      @Test
      fun emailValidator_CorrectEmailSubDomain_ReturnsGood() {
          val email = &quot;name@email.co.uk&quot;
          assertThat(EmailPasswordChecker.getEmailState(email)).isEqualTo(EmailState.GOOD)
      }
  
      @Test
      fun emailValidator_InvalidEmailNoTld_ReturnsIncorrect() {
          val email = &quot;name@email&quot;
          assertThat(EmailPasswordChecker.getEmailState(email)).isEqualTo(EmailState.INCORRECT)
      }
  
      @Test
      fun emailValidator_InvalidEmailDoubleDot_ReturnsIncorrect() {
          val email = &quot;name@email..com&quot;
          assertThat(EmailPasswordChecker.getEmailState(email)).isEqualTo(EmailState.INCORRECT)
      }
  
      @Test
      fun emailValidator_InvalidEmailNoUsername_ReturnsIncorrect() {
          val email = &quot;@email.com&quot;
          assertThat(EmailPasswordChecker.getEmailState(email)).isEqualTo(EmailState.INCORRECT)
      }
  
      @Test
      fun emailValidator_EmptyString_ReturnsEmpty() {
          val email = &quot;&quot;
          assertThat(EmailPasswordChecker.getEmailState(email)).isEqualTo(EmailState.EMPTY)
  }
  </code></pre>
  <p>here is some more helper code-&gt;</p>
  <pre><code>object EmailPasswordChecker{
  //some code that i cant share
  
          }
  
  enum class EmailState {
      GOOD,
      INCORRECT,
      EMPTY
  }
  </code></pre>
  <p>these are simple tests that i wrote using JUnit. but now i need to change them using mockito. can someone help me with the code? i am fairly new to testing so i am not exactly able to figure out how this framework is working.</p>