public void testExecuteSomeFiltering() throws Exception
{
recipientFilters.put("EMAIL", Collections.singletonList(recipientFilter));
final List<Long> recips = Arrays.asList(1L, 2L, 3L);
final CreateNotificationsRequest request = new CreateNotificationsRequest(RequestType.COMMENT, 0);
context.checking(new Expectations()
{
{
oneOf(translator).translate(request);
will(returnValue(new NotificationBatch(NotificationType.LIKE_ACTIVITY, recips)));