### Question:
LogEvent { public void addMessage (Object msg) { payLoad.add (msg); } LogEvent(String tag);  LogEvent();  LogEvent(String tag, Object msg);  LogEvent(LogSource source, String tag);  LogEvent(LogSource source, String tag, Object msg); String getTag(); void setTag(String tag); void addMessage(Object msg); void addMessage(String tagname, String message); LogSource getSource(); void setSource(LogSource source); void setNoArmor(boolean noArmor); void dump(PrintStream p, String outer); String getRealm(); List<Object> getPayLoad(); String toString(String indent); String toString(); boolean isHonorSourceLogger();  }### Answer:
@Test public void testAddMessage() throws Throwable { LogEvent logEvent = new LogEvent(new ISO87APackagerBBitmap(), "testLogEventTag", Integer.valueOf(-2)); logEvent.addMessage("false"); assertEquals(2, logEvent.getPayLoad().size(), "logEvent.payLoad.size()"); assertEquals("false", logEvent.getPayLoad().get(1), "logEvent.payLoad.get(1)"); }