* @return new sub
*/
protected Subscription createSubscription( int num )
{
String id = "http://subscription/" + num;
Subscription sub = new Subscription( id );
// set a simple topic
TopicExpressionType topicExp = sub.getResourceProps( ).getTopicExpression( );
MemorySubscriptionManagerTestCase.setupTopicExpressionType( topicExp, "mazzTopic" );
// expires in the future
Calendar termination = Calendar.getInstance( );
termination.set( 2099, Calendar.JANUARY, 1 );
sub.getResourceProps( ).setTerminationTime( termination );
return sub;
}