@Test(expected = HaloConfigurationException.class)
public void thatDoubleOperationInSearchThrowsException() {

    SearchQuery.builder()
            .beginSearch()
            .eq("field1", "value1")
            .eq("field2", "value2")
            .end();
}