InstantiateVAppTemplateOptions { public InstantiateVAppTemplateOptions addNetworkConfig(NetworkConfig networkConfig) { this.networkConfig.add(checkNotNull(networkConfig, "networkConfig")); return this; }  String getDescription(); boolean shouldDeploy(); boolean shouldPowerOn(); InstantiateVAppTemplateOptions description(String description); InstantiateVAppTemplateOptions deploy(boolean deploy); InstantiateVAppTemplateOptions powerOn(boolean powerOn); InstantiateVAppTemplateOptions addNetworkConfig(NetworkConfig networkConfig); Set<NetworkConfig> getNetworkConfig(); @Override boolean equals(Object object); @Override int hashCode(); @Override String toString();  }
@Test public void testAddNetworkConfig() { InstantiateVAppTemplateOptions options = new InstantiateVAppTemplateOptions(); options.addNetworkConfig(new NetworkConfig("default", URI.create("http: assertEquals(Iterables.get(options.getNetworkConfig(), 0).getNetworkName(), "default"); assertEquals(Iterables.get(options.getNetworkConfig(), 0).getParentNetwork(), URI.create("http: assertEquals(Iterables.get(options.getNetworkConfig(), 0).getFenceMode(), FenceMode.BRIDGED); }