@Test
public void testGetStoragePlatforms() throws Exception
{

    StoragePlatforms storagePlatforms = new StoragePlatforms(Arrays.asList(new StoragePlatform()));
    when(storagePlatformService.getStoragePlatforms()).thenReturn(storagePlatforms);
    StoragePlatforms resultStoragePlatforms = storagePlatformRestController.getStoragePlatforms();
    assertNotNull(storagePlatforms);
    logger.info("Total number of storage platforms: " + storagePlatforms.getStoragePlatforms().size());
    assertTrue(storagePlatforms.getStoragePlatforms().size() >= 1); // We should have at least 1 row of reference data present (i.e. S3).
    // Verify the external calls.
    verify(storagePlatformService).getStoragePlatforms();
    verifyNoMoreInteractions(storagePlatformService);
    // Validate the returned object.
    assertEquals(storagePlatforms, resultStoragePlatforms);
}