public void testSOAP12EnvelopeToSubscription() throws Exception {
MessageContext mc = CommandBuilderTestUtils.getMCWithSOAP12Envelope();
SubscribeCommandBuilder builder = new SubscribeCommandBuilder(mc);
Subscription subscription = builder.toSubscription(
CommandBuilderTestUtils.payloadToSOAP12Envelope(REQUEST_PAYLOAD_SOAP12));
assertNotNull("The subscription object is null", subscription);
assertNotNull("The subscription id is null", subscription.getId());
assertEquals("Invalid expiration time", 2034968820000L,