@Test
public void testDoubleQuotes() {

  // No partial matching for quoted strings
  assertEquals("\"Hello\"", QueryPreprocessor.sanitize("\"Hello\""));
  assertEquals("*Hello* \"World\"", QueryPreprocessor.sanitize("Hello \"World\""));
  // Auto-completion in case of missing double-quote
  assertEquals("*Hello* \"World\"", QueryPreprocessor.sanitize("Hello \"World"));
  assertEquals("*Hello* \"World Again\"", QueryPreprocessor.sanitize("Hello \"World Again"));
  // Escape double quote within tokens, i.e. ensure whitespace separated tokens
  assertEquals("*He\\\"llo* *Wor\\\"ld*", QueryPreprocessor.sanitize("He\"llo Wor\"ld"));
}