@Test
public void testgetRegionNetworks() {

    ProductRelease productRelease = new ProductRelease("product", "2.0");
    List<ProductRelease> productReleases = new ArrayList<ProductRelease>();
    productReleases.add(productRelease);
    Tier tier = new Tier("name1", new Integer(1), new Integer(5), new Integer(1), productReleases);
    tier.setRegion("region1");
    tier.addNetwork(new Network("uno2", VDC, REGION));
    Tier tier3 = new Tier("name3", new Integer(1), new Integer(5), new Integer(1), productReleases);
    tier3.setRegion("region3");
    tier3.addNetwork(new Network("uno2", VDC, REGION));
    Tier tier2 = new Tier("name2", new Integer(1), new Integer(5), new Integer(1), productReleases);
    tier2.setRegion("region2");
    tier2.addNetwork(new Network("uno", VDC, REGION));
    Tier tier4 = new Tier("name5", new Integer(1), new Integer(5), new Integer(1), productReleases);
    tier4.setRegion("region2");
    tier4.addNetwork(new Network("uno2", VDC, REGION));
    Set<Tier> tiers = new HashSet<Tier>();
    tiers.add(tier);
    tiers.add(tier2);
    tiers.add(tier3);
    tiers.add(tier4);
    Environment envResult = new Environment("environemntName", tiers);
    Set<String> nets = envResult.getFederatedNetworks();
    assertEquals(nets.size(), 1);
}