@Test
public void testGetStoragePlatform() throws Exception
{

    StoragePlatform storagePlatform = new StoragePlatform(StoragePlatformEntity.S3);
    when(storagePlatformService.getStoragePlatform(StoragePlatformEntity.S3)).thenReturn(storagePlatform);
    StoragePlatform resultStoragePlatform = storagePlatformRestController.getStoragePlatform(StoragePlatformEntity.S3);
    assertNotNull(storagePlatform);
    assertTrue(StoragePlatformEntity.S3.equals(storagePlatform.getName()));
    logger.info("Storage platform name: " + storagePlatform.getName());
    // Verify the external calls.
    verify(storagePlatformService).getStoragePlatform(StoragePlatformEntity.S3);
    verifyNoMoreInteractions(storagePlatformService);
    // Validate the returned object.
    assertEquals(storagePlatform, resultStoragePlatform);
}