}
@Test
public void whenNoResultShouldReturnNull() throws Exception {
assertThat(collection.findOne("{_id:'invalid-id'}").as(Object.class)).isNull();
assertThat(collection.findOne("{_id:'invalid-id'}").map(new IdResultHandler())).isNull();
assertThat(collection.find("{_id:'invalid-id'}").as(Object.class).iterator()).hasSize(0);
}