assertTrue("Invalid exception generated for expired renew request",
expected instanceof InvalidExpirationTimeException);
}
public void testSubscriptionToSOAP12Envelope() throws Exception {
Subscription subscription = new Subscription();
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(12345678);
subscription.setExpires(calendar);
MessageContext mc = CommandBuilderTestUtils.getMCWithSOAP12Envelope();
RenewCommandBuilder builder = new RenewCommandBuilder(mc);
OMElement payload = builder.fromSubscription(subscription);