PermutationByBit p = new PermutationByBit(D);
ArrayListOfIntsWritable a = p.nextPermutation();
for (int i = 0; i < 100000; i++) {
NBitSignature s = getRandomSignature();
// System.out.println(s);
NBitSignature slide = s.getSubSignature(0, D / 2);
NBitSignature slide2 = s.getSubSignature(D / 2 + 1, D - 1);
// System.out.println(slide+""+slide2);
assertTrue(s.toString().equals(slide.toString() + slide2.toString()));
}
System.out.println("done");
// System.out.println(slide);
// System.out.println(slide2);