title: calling method with Optional parameter in Java 8
body: <p>I have the following method</p>
  
  <pre><code>public static Boolean test(String str, Optional&lt;Boolean&gt; test) {
  
  
  }
  </code></pre>
  
  <p>but if I try to call it like</p>
  
  <pre><code>test("hello")
  </code></pre>
  
  <p>I get an error that the method requires two parameters.</p>
  
  <p>Shouldn't the Optional parameter allow to me call the test method without providing the Optional parameter?</p>