@SuppressWarnings("boxing")
  private void cipEqu(Number actual, Number expected, int flags) {
    Number res = OverloadedNumberUtil.addFallbackType(actual, flags);
    assertEquals(expected.getClass(), res.getClass());
    assertEquals(expected, res);

    // Some number types wrap the number with multiple types and equals() only compares one of them.
    // So we try to
    // catch any inconsistency:
    assertEquals(expected.byteValue(), res.byteValue());
    assertEquals(expected.shortValue(), res.shortValue());
    assertEquals(expected.intValue(), res.intValue());
    assertEquals(expected.longValue(), res.longValue());
    assertEquals(expected.floatValue(), res.floatValue());
    assertEquals(expected.doubleValue(), res.doubleValue());
  }