exchange.getIn().setBody("{\"_id\":\"testInsertString\", \"scientist\":\"Einstein\"}");
exchange.getIn().setHeader("abc", "def");
}
});
assertEquals("An input header was not returned", "def", result.getOut().getHeader("abc"));
<BUG>DBObject b = testCollection.findOne("testInsertString");
</BUG>
assertNotNull("No record with 'testInsertString' _id", b);
}
@Test

exchange.getIn().setBody("{\"_id\":\"testInsertString\", \"scientist\":\"Einstein\"}");
exchange.getIn().setHeader("abc", "def");
}
});
assertEquals("An input header was not returned", "def", result.getOut().getHeader("abc"));
DBObject b = testCollection.find(new BasicDBObject("_id", "testInsertString")).first();
assertNotNull("No record with 'testInsertString' _id", b);
}
@Test
