What is assertEquals method in java?
The Assert class contains a set of assertion methods that can be used while writing tests. The assertEquals() method determines whether two objects are equal. If they aren’t, an AssertionError is thrown with no message. This method returns equal if both the expected and actual values are null.