LongKeyDomain keys = LongKeyDomain.create(2, 7, 8, 42, 639);
keys.setActive(0, false);
LongSortedSet set = new LongSortedArraySet(keys);
assertThat(set, hasSize(4));
assertThat(set.first(), equalTo(7l));
assertThat(set.last(), equalTo(639l));
assertTrue(set.contains(7));
assertTrue(set.contains(42));
assertFalse(set.contains(2));
assertThat(LongIterators.unwrap(set.iterator()),
equalTo(new long[]{7, 8, 42, 639}));