title: Is there any Hamcrest Matcher for java.util.Optional?
body: <p>I am looking for a Hamcrest Matcher to unit test methods that return a java.util.Optional type. Something like: </p>
  
  <pre><code>    @Test
      public void get__Null(){
  
          Optional&lt;Element&gt; element = Element.get(null);      
          assertThat( sasi , isEmptyOptional());
      }
  
      @Test
      public void get__GetCode(){
  
          Optional&lt;Element&gt; element = Element.get(MI_CODE);       
          assertThat( sasi , isOptionalThatMatches(allOf(hasproperty("code", MI_CODE),
                                                         hasProperty("id",   notNullValue())));
      }
  </code></pre>
  
  <p>Is there any implementation available throw the Maven Repository?</p>