cancellationRequest.setReservationCode("GOLD123456");
input.send(MessageBuilder.withPayload(cancellationRequest).build());
Message<?> confirmedMessage = confirmed.receive(0);
assertNotNull(confirmedMessage);
assertEquals(CancellationConfirmation.class, confirmedMessage.getPayload().getClass());
CancellationConfirmation confirmation = (CancellationConfirmation) confirmedMessage.getPayload();
assertEquals("GOLD123456", confirmation.getReservationCode());
}