title: Getting Class not found in module 'app'
body: <p>I'm getting below error while unit testing-</p>
  
  <pre><code>    Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:191)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
  Caused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  </code></pre>
  
  <p>Project structure is-
  <img src="https://i.stack.imgur.com/elr8P.png" alt="enter image description here"></p>
  
  <p>After some investigation in Run Configuration came to know its taking wrong module(main.java.com.example.dexter.sunshine.app) while running this unit case.
  How can we change this module?</p>