@Test(expected = ObjectNotFoundException.class)
public void testGetStoragePlatformInvalidName() throws Exception
{

    ObjectNotFoundException exception = new ObjectNotFoundException("not found");
    String platform = "invalid" + getRandomSuffix();
    when(storagePlatformService.getStoragePlatform(platform)).thenThrow(exception);
    storagePlatformRestController.getStoragePlatform(platform);
}