runTest(s8, null);
}
private void runTest(byte[] payload, Map<String, String> headers) {
PersistableEvent pe = new PersistableEvent("test",
new MockEvent(payload, headers, null));
Assert.assertArrayEquals(payload, pe.getBody());
Map<String, String> h = pe.getHeaders();
if (h == null) {
Assert.assertTrue(headers == null || headers.size() == 0);
} else {
Assert.assertTrue(headers.size() == h.size());
for (String key : h.keySet()) {