title: JUnit test cases for date class
body: <p>I am new to writing JUnit test cases. Below is my class:</p>
  
  <pre><code>public class DateTime {
  
      public static void main(String[] args) {         
          DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd, HH:mm:ss");
          //get current date time with Date()
          Date date = new Date();
          System.out.println("Date,Time:"+dateFormat.format(date));
      }
  }
  </code></pre>
  
  <p>How can i write test cases for this class and how many?</p>