}
@Test
public void randomLongDistributionTest() {
Long start = 85L, end = 86L;
RandomFunction randomFunction = new RandomFunction(Long.class, new Range(start, end));
Set<Long> values = new HashSet<Long>();
for (int i=0; i<10; i++) {
values.add((Long) randomFunction.generateValue());
}
assertTrue("Generated at least one equal to start", values.contains(start));
assertTrue("Generated at least one equal to end", values.contains(end));
}