}
@Test
public void canOrderBy() throws Exception {
collection.save(new Friend("John", "23 Wall Street Av."));
collection.save(new Friend("John", "21 Wall Street Av."));
collection.save(new Friend("John", "22 Wall Street Av."));
Friend friend = collection.findOne().orderBy("{address:1}").as(Friend.class);
assertThat(friend.getAddress()).isEqualTo("21 Wall Street Av.");
}