@Before
public void setup() throws Exception {
org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF);
final Mongo m = new Mongo();
try {
m.dropDatabase("mydb");
} catch (final Exception e) {
assumeThat(true, is(false));// ie ignore test because we've had an
// exception
return;
}
testDb = m.getDB("mydb");
final BasicDBObject object = new BasicDBObject();
// object.put("_id", "1023");
// object.put("_type", "org.xxx.Class");
object.put("_oid", OBJECT_TYPE + ":1023");