int count = rand.nextInt(10000) + 100;
Range targetRange = new Range(start, count);
ConnectionFilter connFilter = new TargetPartitionConnectionFilter(targetRange);
Connection conn = new SimpleConnection(rand.nextInt(), 0, true);
assertEquals(false, connFilter.accept(conn));
conn = new SimpleConnection(rand.nextInt(), rand.nextInt(start), true);
assertEquals(false, connFilter.accept(conn));
conn = new SimpleConnection(rand.nextInt(), start + rand.nextInt(count), true);