NotificationRegistrationStatusRestController extends HerdBaseController { @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT) @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) public NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace, @PathVariable("notificationName") String notificationName, @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest) { return notificationRegistrationStatusService.updateNotificationRegistrationStatus(namespace, notificationName, notificationRegistrationStatusUpdateRequest); }  @Secured(SecurityFunctions.FN_NOTIFICATION_REGISTRATION_STATUS_PUT) @RequestMapping(value = "/notificationRegistrationStatus/namespaces/{namespace}/notificationNames/{notificationName}", method = RequestMethod.PUT, consumes = {"application/xml", "application/json"}) NotificationRegistrationStatusUpdateResponse updateNotificationRegistrationStatus(@PathVariable("namespace") String namespace,
        @PathVariable("notificationName") String notificationName,
        @RequestBody NotificationRegistrationStatusUpdateRequest notificationRegistrationStatusUpdateRequest);  }
@Test public void testUpdateNotificationRegistrationStatusAssertSuccess() { NotificationRegistrationKey notificationRegistrationKey = new NotificationRegistrationKey(NAMESPACE, NOTIFICATION_NAME); NotificationRegistrationStatusUpdateRequest request = new NotificationRegistrationStatusUpdateRequest(NotificationRegistrationStatusEntity.DISABLED); NotificationRegistrationStatusUpdateResponse response = new NotificationRegistrationStatusUpdateResponse(notificationRegistrationKey, NotificationRegistrationStatusEntity.DISABLED); when(notificationRegistrationStatusService.updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, request)).thenReturn(response); NotificationRegistrationStatusUpdateResponse resultResponse = notificationRegistrationStatusRestController.updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, request); verify(notificationRegistrationStatusService).updateNotificationRegistrationStatus(NAMESPACE, NOTIFICATION_NAME, request); verifyNoMoreInteractions(notificationRegistrationStatusService); assertEquals(response, resultResponse); }