@Test
public void testCauseIsStringified() throws Exception {

	// Tests that the cause is stringified, because it might be an instance
	// of a user level Exception, which can not be deserialized by the
	// remote receiver's system class loader.
	ProducerFailedException e = new ProducerFailedException(new Exception());
	assertNull(e.getCause());
	assertNotNull(e.getCauseAsString());
}