title: assertEquals Vs assertTrue for boolean
body: <p>You can test objects <code>assertEquals(a,b)</code> and <code>assertTrue(a.equals(b))</code> or <code>assertTrue(a==b)</code> (for primitives). In this case of course <code>assertEquals(a,b)</code> is the only possible variant. It is null safe and more informative in case of test fault (you get exact fault not true or false).</p>
  
  <h2>I have a next question.</h2>
  
  <p>What about situation when we have only Boolean value to test?</p>
  
  <p><code>assertEquals(true, a)</code> and <code>assertTrue(a)</code></p>
  
  <p>What the difference can be?</p>
  
  <h2>I see the case when we check Boolean. Using assertTrue(a) is not null safe. And this is very important reason. In case of boolean don't see the difference.</h2>