Object[][] testbed = getEqualInstanceRows();
String className = testbed[0][0].getClass().getName();
int index = 0;
for (Object[] instanceRow : testbed) {
for (int i = 0; i < instanceRow.length; i++) {
assertEquals("'" + index + "' array of equal '" + className + "' instances comparison failed on comparing instance '" + i + "' with itself", instanceRow[i], instanceRow[i]);
for (int j = i + 1; j < instanceRow.length; j++) {
// System.out.println( instanceRow[i].toString() + "\n");
// System.out.println( instanceRow[j].toString() + "\n");
assertEquals("'" + index + "' row of equal '" + className + "' instances comparison failed on comparing instance '" + i + "' to instance '" + j + "'", instanceRow[i], instanceRow[j]);
assertEquals("'" + index + "' row of equal '" + className + "' instances comparison failed on comparing instance '" + j + "' to instance '" + i + "'", instanceRow[j], instanceRow[i]);
}
}
index++;
}