Event e = channel.take();
Assert.assertNotNull(e.getHeaders());
Assert.assertNotNull(e.getHeaders().get("fileHeaderKeyTest"));
Assert.assertEquals(e.getHeaders().get("fileHeaderKeyTest"),
f1.getAbsolutePath());
txn.commit();
txn.close();
}
@Test
public void testLifecycle() throws IOException, InterruptedException {