BitSet b4 = new BitSet(356);
b4.set(2);
b4.set(3);
ArrayList<Signature> al = new ArrayList<Signature>();
al.add(new Signature(11,b11));
al.add(new Signature(1,b1));
al.add(new Signature(2,b2));
al.add(new Signature(4,b4));
al.add(new Signature(3,b3));
Collections.sort(al, new LexicographicBitSetComparator());
Assert.assertEquals(2, al.get(0).id);
Assert.assertEquals(3, al.get(1).id);
Assert.assertEquals(4, al.get(2).id);