}
public void testFirehose() throws IOException {
publishGet("not traced");
enable();
GetResponse msg = publishGet("traced");
disable();
publishGet("not traced");
GetResponse publish = basicGet(firehose);
GetResponse deliver = basicGet(firehose);
assertNotNull(publish);
assertNotNull(deliver);
assertDelivered(firehose, 0);
// We don't test everything, that would be a bit OTT
checkHeaders(publish.getProps().getHeaders());
Map<String,Object> delHeaders = deliver.getProps().getHeaders();
checkHeaders(delHeaders);
assertNotNull(delHeaders.get("redelivered"));
assertEquals(msg.getBody().length, publish.getBody().length);
assertEquals(msg.getBody().length, deliver.getBody().length);
}