@Test(expected = CloudRuntimeException.class)
public void searchServiceOfferingByNameTestExpectCloudRuntimeException() {

    List<ServiceOfferingVO> allServiceOffering = createServiceOfferingVOList(1);
    Mockito.doReturn(allServiceOffering).when(serviceOfferingDao).listAll();
    spy.searchServiceOfferingByName("thisNameDoesNotExist");
}