Need help to write a unit test using Mockito and JUnit4
<p>Need help to write a unit test for the below code using Mockito and JUnit4,</p>

<pre><code>public class MyFragmentPresenterImpl { 
      public Boolean isValid(String value) {
        return !(TextUtils.isEmpty(value));
      }
}
</code></pre>

<p>I tried below method:
MyFragmentPresenter mMyFragmentPresenter</p>

<pre><code>@Before
public void setup(){
    mMyFragmentPresenter=new MyFragmentPresenterImpl();
}

@Test
public void testEmptyValue() throws Exception {
    String value=null;
    assertFalse(mMyFragmentPresenter.isValid(value));
}
</code></pre>

<p>but it returns following exception,</p>

<blockquote>
  <p>java.lang.RuntimeException: Method isEmpty in android.text.TextUtils
  not mocked. See <a href="http://g.co/androidstudio/not-mocked" rel="noreferrer">http://g.co/androidstudio/not-mocked</a> for details. at
  android.text.TextUtils.isEmpty(TextUtils.java) at ....</p>
</blockquote>