@Test
public void testFindOfferingIdDefault() {

    // Prepare
    final VpcOfferingVO vpcOffering = mock(VpcOfferingVO.class);
    when(mockVpcOffDao.findById(VPC_OFFERING_ID)).thenReturn(vpcOffering);
    when(vpcOffering.getServiceOfferingId()).thenReturn(null);
    when(mockServiceOfferingDao.findDefaultSystemOffering(Matchers.anyString(), Matchers.anyBoolean())).thenReturn(mockSvcOfferingVO);
    when(mockSvcOfferingVO.getId()).thenReturn(DEFAULT_OFFERING_ID);
    // Execute
    deployment.findServiceOfferingId();
    // Assert
    assertEquals("Since there is no service offering associated with VPC offering, offering id should have matched default one",
            DEFAULT_OFFERING_ID, deployment.serviceOfferingId.longValue());
}