assertThat((String) document.get("anotherField"), is(equalTo("bar")));
}
@Test
public void shouldConvertNumericValues() {
SimplePOJO pojo = new SimplePOJO();
pojo.setAnIntegerField(42);
pojo.setaLongField(43L);
pojo.setaDoubleField(44.0);
DBObject document = converter.from(pojo).toDocument();
Class<?> anIntegerFieldClass = document.get("anIntegerField").getClass();
assertThat(anIntegerFieldClass, classEqualTo(Integer.class));