How do you check assertEquals in JUnit?

How do you check assertEquals in JUnit?

The assertSame() method determines whether two object references correspond to the same thing. The assertNotSame() method checks whether two object references relate to the same thing. assertArrayEquals(expectedArray, resultArray); The assertArrayEquals() method compares two arrays to see if they are equivalent.

JUnit - Using Assertion.