@Test
public void getSubscriber_SubscripberMustBeCreated() {

    when(subscriptionDelegateTestObject.subscriberDao.findSubscriber(subscriberIdentity)).thenReturn(null);
    when(subscriptionDelegateTestObject.subscriberDao.createAndSaveSubscriber(subscriberIdentity)).thenReturn(subscriber);
    Subscriber resultSubscriber = subscriptionDelegateTestObject.getSubscriber(subscriberIdentity);
    assertEquals("getSubscriber returns wrong subscriber", subscriber, resultSubscriber);
}