@Test
public void testGetStorageUnitNotificationRegistrationsByNamespace()
{

    StorageUnitNotificationRegistrationKeys storageUnitNotificationRegistrationKeys =
        new StorageUnitNotificationRegistrationKeys(notificationRegistrationDaoTestHelper.getExpectedNotificationRegistrationKeys());
    when(storageUnitNotificationRegistrationService.getStorageUnitNotificationRegistrationsByNamespace(NAMESPACE))
        .thenReturn(storageUnitNotificationRegistrationKeys);
    // Retrieve a list of business object data notification registration keys.
    StorageUnitNotificationRegistrationKeys resultStorageUnitNotificationRegistrationKeys =
        storageUnitNotificationRegistrationRestController.getStorageUnitNotificationRegistrationsByNamespace(NAMESPACE);
    // Verify the external calls.
    verify(storageUnitNotificationRegistrationService).getStorageUnitNotificationRegistrationsByNamespace(NAMESPACE);
    verifyNoMoreInteractions(storageUnitNotificationRegistrationService);
    // Validate the returned object.
    assertEquals(storageUnitNotificationRegistrationKeys, resultStorageUnitNotificationRegistrationKeys);
}