assertEquals(key, searchKey);
}
private void checkValid(String input, final SearchKey key, boolean isFirst,
String charset) throws Exception {
ImapRequestLineReader reader = new ImapRequestStreamLineReader(
new ByteArrayInputStream(input.getBytes(charset)),
new ByteArrayOutputStream());
final SearchKey searchKey = parser.searchKey(null, reader, null, isFirst);
assertEquals(key, searchKey);