FullConstraintMatcher matcher = new FullConstraintMatcher(new Constraint[]{C.eq(topic),
C.eq(durableName), C.IS_NULL, C.IS_TRUE});
Mock mockSession = new Mock(Session.class);
mockSession.expect("createDurableSubscriber", matcher);
jmsSupport.createConsumer((Session)mockSession.proxy(), topic, null, noLocal, durableName, true, getTestInboundEndpoint("test"));
mockTopic.verify();
mockSession.verify();