title: Assertion Failed Error with same outputs
body: <p>I have a class that parses a .json file and I am trying to write test code for the parser method.</p>
  
  <p>Here is my test code, the expected and result are the same as you can see by the trace log.</p>
  
  <pre><code>@Test
  public void testParse() throws Exception {
      System.out.println("parse");
      String fileName = "data/fake-1.json";
      RedditListingParser instance = new RedditListingParser();
      ArrayList&lt;RedditThing&gt; expResult = new ArrayList();
      RedditThing thing = new RedditThing("85osel", "ONE TWO TWO THREE THREE THREE", "JoseTwitterFan");
      expResult.add(thing);
  
      ArrayList&lt;RedditThing&gt; result = instance.parse(fileName);
      assertEquals(expResult, result);
  }
  </code></pre>
  
  <p>And here is the stack log</p>
  
  <pre><code>expected: java.util.ArrayList&lt;[85osel, JoseTwitterFan, ONE TWO TWO THREE THREE THREE]&gt; but was: java.util.ArrayList&lt;[85osel, JoseTwitterFan, ONE TWO TWO THREE THREE THREE]&gt;
  junit.framework.AssertionFailedError
      at reddithottopicsanalyser.RedditListingParserTest.testParse(RedditListingParserTest.java:55)
  </code></pre>
  
  <p>I'm not sure what the exact problem is here as I can implement a test to check whether it is null and that does that test without a problem.</p>
  
  <p>Thankyou.</p>