@Test
public void testPartialMatches() {

  assertEquals("*Hello*", QueryPreprocessor.sanitize("Hello"));
  assertEquals("*Hello*", QueryPreprocessor.sanitize("*Hello"));
  assertEquals("*Hello*", QueryPreprocessor.sanitize("Hello*"));
  assertEquals("*Hello*", QueryPreprocessor.sanitize("*Hello*"));
  assertEquals("*Hello* *World*", QueryPreprocessor.sanitize("Hello World"));
  assertEquals("*Hello* *World*", QueryPreprocessor.sanitize("Hello* World"));
  assertEquals("*Hello* *World*", QueryPreprocessor.sanitize("Hello *World"));
  assertEquals("*Hello* *World*", QueryPreprocessor.sanitize("*Hello* *World*"));
}