Assert.assertEquals(message.getProperty("prop-2"), "value");
}
@Test
public void shouldCopyPropertyAndDeleteFrom() throws Exception {
CopyAction action = new CopyAction();
action.setFrom("prop-1");
action.setTo("prop-2");
action.setDeleteFrom(true);
Message message = new Message();
message.setProperty("prop-1", "value");
action.execute(message);
Assert.assertNull(message.getProperty("prop-1"));
Assert.assertEquals(message.getProperty("prop-2"), "value");
}