@Test
public void createAndSaveSubscription() {

    when(subscriptionDelegateTestObject.subscriptionDao.createOrReuseSubscription(subscriber, publisher)).thenReturn(subscription);
    Subscription createdSubscription = subscriptionDelegateTestObject.createAndSaveSubscription(subscriptionContext);
    assertEquals("createAndSaveSubscription returns wrong subscription", subscription, createdSubscription);
}