title: How to write JUnit test cases with out passing arguments from test class
body: <p>I am new to Junit, and I do not understand how we have to cover the code below without passing arguments from test class. Can anyone suggest me please.</p>
  
  <pre><code>  public void process() {
          String message = "data";
          if (message != null &amp;&amp; message.equalsIgnoreCase("data")) {
              System.out.println("print message"+message);
          } else {
              System.out.println("empty message"+message);
          }
      }
  </code></pre>