@Test
public void extractNegationTerms() throws Exception
{

    IndexSearchRequest indexSearchRequest = new IndexSearchRequest();
    indexSearchRequest.setSearchTerm("foo -foo bar -bar foobar");
    Assert.assertEquals(Arrays.asList("foo", "bar"), herdSearchQueryHelper.extractNegationTerms(indexSearchRequest));
    indexSearchRequest.setSearchTerm("foo -foo bar -bar foobar");
    Assert.assertEquals(Arrays.asList("foo", "bar"), herdSearchQueryHelper.extractNegationTerms(indexSearchRequest));
}