endpoint.expectedBodiesReceived("Completed");
Map<String, Object> headers = new HashMap<String, Object>();
headers.put("foo", "bar");
// this header should not be sent as its value cannot be serialized
headers.put("binding", new JmsBinding());
template.sendBodyAndHeaders("activemq:Test.BindingQueue", "SomeBody", headers);
// lets wait for the method to be invoked
assertMockEndpointsSatisfied();