new SendMessageEnvelopeTask().run();
MessageEnvelope modified = loadEnvelope(envelopeId.toString());
assertThat(modified.getNumTried(), is(1));
assertThat(modified.getLastTriedAt(), is(now));
assertThat(modified.getTryAfter(), is(now.nSecAfter(600))); // 5 min later
}
@Test
public void sendTwitterMessageWithTwitterExceptionExceededLimit() throws Exception {
DateTime now = TimeUtil.getCurrentDateTime();