@Test
public void testCreateStorage()
{

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