@Test
public void testFindOfferingIdFromVPC() {

    // Prepare
    final VpcOfferingVO vpcOffering = mock(VpcOfferingVO.class);
    when(mockVpcOffDao.findById(VPC_OFFERING_ID)).thenReturn(vpcOffering);
    when(vpcOffering.getServiceOfferingId()).thenReturn(VPC_OFFERING_ID);
    // Test
    deployment.findServiceOfferingId();
    // Assert
    assertEquals("Service offering id not matching the one associated with VPC offering",
            VPC_OFFERING_ID, deployment.serviceOfferingId.longValue());
}