@Test
public void shouldLoadConvertable()
{
IQuery<TestObject> query = new IterableQuery<>(TestObjectRepository.createList(3), TestObject.class);
IQuery<Integer> to = query.where(new EqualityMatcher<>("index", 2)).select(new IntegerField("index"));
assertThat(query.toArray().length).isEqualTo(3);
assertThat(query.toList().size()).isEqualTo(3);
assertThat(to.toArray().length).isEqualTo(1);
assertThat(to.toList().size()).isEqualTo(1);