title: Mockito + Dexmaker on Android
body: <p>I am trying to use Mockito in my Android project.
  I have found very nice tutorial that deals with it: <a href="http://www.paulbutcher.com/2012/05/mockito-on-android-step-by-step/" rel="noreferrer">http://www.paulbutcher.com/2012/05/mockito-on-android-step-by-step/</a></p>
  
  <p>Basically it uses new version of Mockito + Dexmaker and everything works as expected.<br>
  However, when I try to mock some Android specific object i.e:</p>
  
  <pre><code>Context context = mock(Context.class);
  </code></pre>
  
  <p>I receive this exception:</p>
  
  <pre><code>java.lang.IllegalArgumentException: 
      dexcache == null (and no default could be found; 
      consider setting the 'dexmaker.dexcache' system property)
  at com.google.dexmaker.DexMaker.generateAndLoad(DexMaker.java:359)
  at com.google.dexmaker.stock.ProxyBuilder.buildProxyClass(ProxyBuilder.java:252)
  at com.google.dexmaker.mockito.DexmakerMockMaker.createMock(DexmakerMockMaker.java:54)
  at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:26)
  </code></pre>
  
  <p>Any idea how to fix it?</p>