title: How to write JUnit Testing for methods receives a String and return LocalDate?
body: <p>I have this method that I want to test it with JUnit. It converts String into LocalDate.</p>
  
  <pre><code>public static LocalDate convertDate(String aDate) {
          DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MMM-yyyy");
          LocalDate localDate = LocalDate.parse(aDate, formatter);
  
          return localDate;
      }
  </code></pre>