title: Test for: ArrayList is null AND size is zero
body: <p>I have the following code </p>
  
  <pre><code>static final Criteria&lt;TheGetMessage&gt; NO_EVENTS =
              message -&gt; (message.getTypes() != null) &amp;&amp; (message.getTypes().size() == 0);
  </code></pre>
  
  <p>and SonarQube says that 3/4 branches covered for it. It is illogical, that one of the cases is: ArrayList object is null AND ArrayList object size method being called. Because lazy evaluation will not check second condition. <strong>message</strong> class doesn't contain unchecked conditions. 
  Any help will be great! </p>