title: How do I test Java code that uses JAR?
body: <p>I have Java code that uses JAR:</p>
  
  <pre><code>public class Version {
     public String getVersion() {
          // Use Java Package API to return information specified in the manifest of this JAR.
          return getClass().getPackage().getImplementationVersion();
      }
  }
  </code></pre>
  
  <p>How do I run JUnit test for this code?</p>
  
  <p>It fails in development build (in Eclipse) since there is no JAR file yet.</p>
  
  <p>It fails in production build (in Gradle) since there is no JAR file yet.</p>