@Test
public void canFindWithStringAsObjectId() {
/* given */
String id = ObjectId.get().toString();
ExposableFriend friend = new ExposableFriend(id, "John");
collection.save(friend);
/* when */
Iterator<ExposableFriend> friends = collection.find(withOid(friend.getId())).as(ExposableFriend.class);
/* then */
ExposableFriend john = friends.next();
assertThat(john.getId()).isEqualTo(id);
assertThat(john.getName()).isEqualTo("John");
assertThat(friends.hasNext()).isFalse();
}