EventBuilder { @Override public String toString() { return builder.toString(); } EventBuilder(final String eventName); EventBuilder append(final boolean field); EventBuilder append(final byte field); EventBuilder append(final short field); EventBuilder append(final int field); EventBuilder append(final long field); EventBuilder append(final double field); EventBuilder append(final String field); @Override String toString();  }
@Test(groups = "fast") public void testToString() throws Exception { final EventBuilder builder = new EventBuilder("EventName"); builder.append(1L); builder.append(2L); builder.append(127L); builder.append(-128L); builder.append(32767); builder.append(-32768L); builder.append(2147483647L); builder.append(-2147483648L); builder.append(10000000000L); builder.append(-20000000000L); Assert.assertEquals(builder.toString(), "EventName,81,82,8127,8-128,432767,8-32768,82147483647,8-2147483648,810000000000,8-20000000000"); }