@Test
public void testSubtrackWithOverflowDefault() {

  long res = Util.subtractWithOverflowDefault(5, 10, /* overflowResult= */ 0);
  assertThat(res).isEqualTo(-5);
  res = Util.subtractWithOverflowDefault(Long.MIN_VALUE + 1, 1, /* overflowResult= */ 12345);
  assertThat(res).isEqualTo(Long.MIN_VALUE);
  res = Util.subtractWithOverflowDefault(Long.MAX_VALUE - 1, -1, /* overflowResult= */ 12345);
  assertThat(res).isEqualTo(Long.MAX_VALUE);
  res = Util.subtractWithOverflowDefault(Long.MIN_VALUE, 1, /* overflowResult= */ 12345);
  assertThat(res).isEqualTo(12345);
  res = Util.subtractWithOverflowDefault(Long.MAX_VALUE, -1, /* overflowResult= */ 12345);
  assertThat(res).isEqualTo(12345);
}