@Test
public void testUpdateStorage()
{

    // Create a storage key.
    StorageKey storageKey = new StorageKey(STORAGE_NAME);
    // Create a storage update request.
    StorageUpdateRequest storageUpdateRequest = new StorageUpdateRequest();
    // Create a storage.
    Storage storage = new Storage(STORAGE_NAME, STORAGE_PLATFORM_CODE, NO_ATTRIBUTES);
    // Mock the external calls.
    when(storageService.updateStorage(storageKey, storageUpdateRequest)).thenReturn(storage);
    // Call the method under test.
    Storage result = storageRestController.updateStorage(STORAGE_NAME, storageUpdateRequest);
    // Verify the external calls.
    verify(storageService).updateStorage(storageKey, storageUpdateRequest);
    verifyNoMoreInteractions(storageService);
    // Validate the returned object.
    assertEquals(storage, result);
}