SegmentGenerator { static boolean lowerThan(BigInteger big0, BigInteger big1) { return big0.compareTo(big1) < 0; } SegmentGenerator(String partitioner);   SegmentGenerator(BigInteger rangeMin, BigInteger rangeMax);   }
@Test public void testLowerThan() throws Exception { BigInteger one = BigInteger.ONE; BigInteger ten = BigInteger.TEN; assertTrue(SegmentGenerator.lowerThan(one, ten)); assertFalse(SegmentGenerator.lowerThan(ten, one)); assertFalse(SegmentGenerator.lowerThan(ten, ten)); BigInteger minusTen = BigInteger.TEN.negate(); assertTrue(SegmentGenerator.lowerThan(minusTen, one)); assertFalse(SegmentGenerator.lowerThan(one, minusTen)); }