new Morphia().createDatastore(getMongoClient(), "test");
}
@Test
public void testLifecycle() throws Exception {
final DBDecoderFactory oldFactory = getAds().setDecoderFact(LazyWriteableDBDecoder.FACTORY);
//only replace if using lazy decoder
if (!(oldFactory instanceof LazyDBDecoder)) {
getAds().setDecoderFact(oldFactory);
}