@Test
public void testFindSourceNatIPPublicNw() throws InsufficientAddressCapacityException, ConcurrentOperationException {

    // Prepare
    final PublicIp sourceNatIp = mock(PublicIp.class);
    when(mockIpAddrMgr.assignSourceNatIpAddressToGuestNetwork(
            mockOwner, mockNw)).thenReturn(sourceNatIp);
    deployment.isPublicNetwork = true;
    // It should be null until this method finds it
    assertNull(deployment.sourceNatIp);
    // Execute
    deployment.findSourceNatIP();
    // Assert
    assertEquals("SourceNatIP was not correctly found and set", sourceNatIp, deployment.sourceNatIp);
}