assertEquals("thar", lm.getField("ohai"));
}
@Test
public void testAddFieldsWithMap() {
Message lm = new Message("foo", "bar", Tools.iso8601());
lm.addField("ohai", "hai");
Map<String, Object> map = new HashMap<String, Object>();
map.put("lol", "wut");
map.put("aha", "pipes");
lm.addFields(map);
assertEquals(7, lm.getFields().size());
assertEquals("wut", lm.getField("lol"));
assertEquals("pipes", lm.getField("aha"));
assertEquals("hai", lm.getField("ohai"));
}