title: JUnit with Java 8 Clock
body: <p>Imagine we have the following class that I would like to test: </p>
  
  <pre><code>class Times {
  
      Clock cl = Clock.systemDefaultZone();
  
      public int changeTime() {
          LocalDate ld = LocalDate.now(cl);
          if(ld.getMonth().equals(Month.OCTOBER))
              return 1;
          if(ld.getMonth().equals(Month.NOVEMBER))
              return 2;
          return 0;
      }
  }
  </code></pre>
  
  <p>How can I force the date to be in November and assert that the method returns 2?</p>
  
  <p>I am using JUnit and Mockito. </p>