title: How can we test plain Java code in Android Studio?
body: <p>If I have a project in Eclipse, I can at any time create a class with a <code>main</code> and test anything <em>having</em> all the classes and libraries of my project available.</p>
  
  <p>How do I do something like that in Android Studio?  </p>
  
  <p>If I have a big project and I would like to test a small method in isolation, how would I do that without needing to run the emulator or an Activity, etc?   </p>