@Test
public void testAssertAllResultsEqual() {

  checkAllResults(new Long[]{}, true);
  checkAllResults(new Long[]{1l}, true);
  checkAllResults(new Long[]{1l, 1l}, true);
  checkAllResults(new Long[]{1l, 1l, 1l}, true);
  checkAllResults(new Long[]{new Long(1), new Long(1)}, true);
  checkAllResults(new Long[]{null, null, null}, true);
  
  checkAllResults(new Long[]{1l, 2l}, false);
  checkAllResults(new Long[]{2l, 1l}, false);
  checkAllResults(new Long[]{1l, 2l, 1l}, false);
  checkAllResults(new Long[]{2l, 1l, 1l}, false);
  checkAllResults(new Long[]{1l, 1l, 2l}, false);
  checkAllResults(new Long[]{1l, null}, false);
  checkAllResults(new Long[]{null, 1l}, false);
  checkAllResults(new Long[]{1l, null, 1l}, false);
}