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

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