### Question:
MathExt { public static long floorLong(double value) { return (long) Math.floor(value); } private  MathExt(); static long ceilLong(double value); static long floorLong(double value); static int ceilInt(double value); static int floorInt(double value);  }### Answer:
@Test public void testFloorLong() throws Exception { assertThat(MathExt.floorLong(0.0), is(0L)); assertThat(MathExt.floorLong(1.0), is(1L)); assertThat(MathExt.floorLong(1.5), is(1L)); assertThat(MathExt.floorLong(1.9), is(1L)); assertThat(MathExt.floorLong(2.0), is(2L)); assertThat(MathExt.floorLong(2.5), is(2L)); assertThat(MathExt.floorLong(2.9), is(2L)); }