@Test
public void searchServiceOfferingByNameTest() {

    List<ServiceOfferingVO> allServiceOffering = createServiceOfferingVOList(1);
    Mockito.doReturn(allServiceOffering).when(serviceOfferingDao).listAll();
    ServiceOfferingVO result = spy.searchServiceOfferingByName("serviceOfferingVoName");
    Mockito.verify(serviceOfferingDao).listAll();
    Assert.assertEquals(allServiceOffering.get(0), result);
}