@Test
public void testGetStorage()
{

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