title: How to assert 2 scala objects containing list in Scala test?
body: <p>I have a case class like this.</p>
  
  <pre><code>case class A(a: Int, List[Int])
  
  Now I want to assert two instances of A
  
  val a = A(100, List(2, 4))
  val b = A(100, List(4, 2))
  
  a shouldBe b 
  a shouldEqual b
  </code></pre>
  
  <p>Above two statements fail because List(2, 4) does not have same order as List(4, 2).</p>
  
  <p>Is there a way to assert whole objects of A i.e. a and b, so that it passes ?</p>