Here you can find the source of assertEquals(Object val1, Object val2)
public static void assertEquals(Object val1, Object val2)
//package com.java2s; //License from project: LGPL public class Main { public static void assertEquals(String message, Object val1, Object val2) { if (message != null) { assert val1.equals(val2) : message; } else {/*from w w w .j a v a 2 s . c om*/ assert val1.equals(val2); } } public static void assertEquals(Object val1, Object val2) { assertEquals(null, val1, val2); } }