Assert.assertEquals(message.getProperty("to", String.class), "suf");
}
@Test
public void shouldNotAddSuffixIfPresent() throws Exception {
AddSuffixAction action = new AddSuffixAction();
action.setField("to");
action.setSuffix("suf");
Message message = new Message();
message.setProperty("to", "testsuf");
action.execute(message);
Assert.assertEquals(message.getProperty("to", String.class), "testsuf");
}