MathUtil { public static long ceilDiv(long x, long y) { long r = x / y; if ((x ^ y) > 0 && (r * y != x)) { r++; } return r; } private  MathUtil(); static long ceilDiv(long x, long y);  }
@Test public void testCeilDiv() { assertCeilDiv(1, 1, 1); assertCeilDiv(1, 2, 1); assertCeilDiv(2, 1, 2); assertCeilDiv(3, 1, 3); assertCeilDiv(1, 3, 1); assertCeilDiv(2, 3, 1); }