assertNull(timestampedEvent.getHeaders().get("timestamp"));
}
@Test
public void shouldPreserveBodyAndNonTimestampHeadersInTimestampedEvent() {
SimpleEvent base = new SimpleEvent();
base.setBody(new byte[] {1,2,3,4});
Map<String, String> headersWithTimestamp = Maps.newHashMap();
headersWithTimestamp.put("foo", "bar");
base.setHeaders(headersWithTimestamp );
TimestampedEvent timestampedEvent = new TimestampedEvent(base);
assertEquals("bar", timestampedEvent.getHeaders().get("foo"));
assertArrayEquals(base.getBody(), timestampedEvent.getBody());
}