  @Test
  public void testGetIpsecSesssionCloud() {

    NetworkFactory nf = new NetworkFactory();
    Configuration.Builder cb = nf.configurationBuilder();
    IpsecStaticPeerConfig.Builder ipsecPeerConfigBuilder = IpsecStaticPeerConfig.builder();

    assertTrue(
        getIpsecSession(
                cb.setConfigurationFormat(AWS).build(),
                cb.setConfigurationFormat(AWS).build(),
                ipsecPeerConfigBuilder.build(),
                ipsecPeerConfigBuilder.build())
            .isCloud());

    assertTrue(
        getIpsecSession(
                cb.setConfigurationFormat(CISCO_IOS).build(),
                cb.setConfigurationFormat(AWS).build(),
                ipsecPeerConfigBuilder.build(),
                ipsecPeerConfigBuilder.build())
            .isCloud());

    assertFalse(
        getIpsecSession(
                cb.setConfigurationFormat(CISCO_IOS).build(),
                cb.setConfigurationFormat(CISCO_IOS).build(),
                ipsecPeerConfigBuilder.build(),
                ipsecPeerConfigBuilder.build())
            .isCloud());
  }