### Question:
PushNotificationSubscriptionRequestQueueConsumerServiceImpl implements PushNotificationSubscriptionRequestQueueConsumerService { @Override public void processPushNotificationSubscriptionRequest(@Nonnull final Long requestId) { Assert.notNull(requestId, "Push notification subscription request id should not be null"); LOGGER.debug("Processing push notification subscription request with id - {}", requestId); pushNotificationSubscriptionRequestProcessingService.processPushNotificationSubscriptionRequest(requestId); } PushNotificationSubscriptionRequestQueueConsumerServiceImpl(); @Override void processPushNotificationSubscriptionRequest(@Nonnull final Long requestId); PushNotificationSubscriptionRequestProcessingService getPushNotificationSubscriptionRequestProcessingService(); void setPushNotificationSubscriptionRequestProcessingService(final PushNotificationSubscriptionRequestProcessingService pushNotificationSubscriptionRequestProcessingService);  }### Answer:
@Test public void testProcessPushNotificationSubscriptionRequestWithInvalidArguments() { resetAll(); replayAll(); try { pushNotificationSubscriptionRequestQueueConsumerService.processPushNotificationSubscriptionRequest(null); fail("Exception should be thrown"); } catch (final IllegalArgumentException ex) { } verifyAll(); }
@Test public void testProcessPushNotificationSubscriptionRequest() { final Long requestId = 1L; resetAll(); expect(pushNotificationSubscriptionRequestProcessingService.processPushNotificationSubscriptionRequest(requestId)).andReturn(null).once(); replayAll(); pushNotificationSubscriptionRequestQueueConsumerService.processPushNotificationSubscriptionRequest(requestId); verifyAll(); }