@Test
public void testChooseSpatialWithoutStatsHouseDay() {

  final ChooseLocalityPreservingQueryStrategy strategy =
      new ChooseLocalityPreservingQueryStrategy();
  final Iterator<Index> it =
      getIndices(
          new HashMap<StatisticsId, InternalDataStatistics<SimpleFeature, ?, ?>>(),
          new BasicQueryByClass(createConstraints(HOUSE, HOUSE, DAY)),
          strategy);
  assertTrue(it.hasNext());
  assertEquals(indices.get(3).getName(), it.next().getName());
  assertFalse(it.hasNext());
}