title: JUnit assertEquals() not working when comparing two objects
body: <p>I'm trying to get the hang of Java. Unit testing is pretty important to me and so recently I've started to use JUnit. It was tough to begin with but I'm getting the hang of it. All of my tests have worked up to this point, with the exception of comparing two objects of the same class (I haven't tried testing a function that creates an object of a different class). Basically, when I have a method within a class that creates a new instance of the class, and I try to test the method, I get a weird error.  </p>
  
  <p>"expected:runnersLog.MTLog@433c675d but was runnersLog.MTLog@3f91beef"</p>
  
  <p>I have tried researching this problem, but haven't found anything of much help. <a href="https://github.com/buglebudabey/RunnersLog" rel="noreferrer">Here's</a> the link to my classes on github. The method I am trying to test is the <code>mt()</code> method, and the test class is <code>ILogTest</code>.  </p>
  
  <p>This is not the only case where I am having this problem. With any class that has a method that returns a new object of the same class, I am getting this exact same 3f91beef error (even when the object is more complicated - with arguments)</p>