// [2000 TO 2002] ==> 4455
// (2000 TO 2002) ==> 1443
// (2000 TO 2002] ==> 2907
// [2000 TO 2002) ==> 2991
SenseiClientRequest request = SenseiClientRequest.builder().addSelection(Selection.range("year", "2000", "2002")).build();
SenseiResult res = senseiServiceProxy.sendSearchRequest(request);
assertEquals("numhits is wrong", 4455, res.getNumhits().intValue());
request = SenseiClientRequest.builder().addSelection(Selection.range("year", "2000", "2002", false, false)).build();
res = senseiServiceProxy.sendSearchRequest( request);
assertEquals("numhits is wrong", 1443, res.getNumhits().intValue());
request = SenseiClientRequest.builder().addSelection(Selection.range("year", "2000", "2002", false, true)).build();
res = senseiServiceProxy.sendSearchRequest( request);
assertEquals("numhits is wrong", 2907, res.getNumhits().intValue());
request = SenseiClientRequest.builder().addSelection(Selection.range("year", "2000", "2002", true, false)).build();
res = senseiServiceProxy.sendSearchRequest( request);
assertEquals("numhits is wrong", 2991, res.getNumhits().intValue());
}