RangeFunctions { public static boolean isBetween(long reading, long floor, long ceiling) { return reading < ceiling && reading > floor; }  static boolean isAbove(long reading, long value); static boolean isBelow(long reading, long value); static boolean isBetween(long reading, long floor, long ceiling);  }
@Test public void testBetween(){ assertThat(RangeFunctions.isBetween(2,1,3), is(true)); assertThat(RangeFunctions.isBetween(1,1,3), is(false)); assertThat(RangeFunctions.isBetween(3,1,3), is(false)); }