final SimpleSubscription fake2 = new SimpleSubscription("fakeUser", "INBOX");
for (String user : subscriptionList.keySet()) {
LOG.info("Searching for all subscriptions for user:{}", user);
for (SimpleSubscription subscription : subscriptionList.get(user)) {
final Subscription result = mapper.findMailboxSubscriptionForUser(user, subscription.getMailbox());
assertEquals(subscription.getMailbox(), result.getMailbox());
assertEquals(subscription.getUser(), result.getUser());
}
}
assertNull(mapper.findMailboxSubscriptionForUser(fake1.getUser(), fake1.getMailbox()));
assertNull(mapper.findMailboxSubscriptionForUser(fake2.getUser(), fake2.getMailbox()));
}