checkValid("NOT *:100,110,200:201,400:*\r\n", key);
}
@Test
public void testShouldParseNotUid() throws Exception {
IdRange[] range = { new IdRange(100, Long.MAX_VALUE), new IdRange(110),
new IdRange(200, 201), new IdRange(400, Long.MAX_VALUE) };
SearchKey notdKey = SearchKey.buildUidSet(IdRange.mergeRanges(Arrays.asList(range)).toArray(new IdRange[0]));
SearchKey key = SearchKey.buildNot(notdKey);
checkValid("NOT UID *:100,110,200:201,400:*\r\n", key);
}