VCloudTemplateOptions extends TemplateOptions implements Cloneable { public VCloudTemplateOptions customizationScript(String customizationScript) { this.customizationScript = checkNotNull(emptyToNull(customizationScript), "customizationScript must be defined"); return this; }  @Override VCloudTemplateOptions clone(); @Override void copyTo(TemplateOptions to); @Override boolean equals(Object o); @Override int hashCode(); @Override ToStringHelper string(); VCloudTemplateOptions description(String description); VCloudTemplateOptions customizationScript(String customizationScript); VCloudTemplateOptions ipAddressAllocationMode(IpAddressAllocationMode ipAddressAllocationMode); VCloudTemplateOptions parentNetwork(URI parentNetwork); VCloudTemplateOptions fenceMode(FenceMode fenceMode); String getDescription(); String getCustomizationScript(); IpAddressAllocationMode getIpAddressAllocationMode(); URI getParentNetwork(); FenceMode getFenceMode(); @Override VCloudTemplateOptions blockOnPort(int port, int seconds); @Override VCloudTemplateOptions inboundPorts(int... ports); @Override VCloudTemplateOptions authorizePublicKey(String publicKey); @Override VCloudTemplateOptions installPrivateKey(String privateKey); @Override VCloudTemplateOptions userMetadata(Map<String, String> userMetadata); @Override VCloudTemplateOptions userMetadata(String key, String value);  }
@Test(expectedExceptions = NullPointerException.class, expectedExceptionsMessageRegExp = "customizationScript must be defined") public void testcustomizationScriptBadFormat() { VCloudTemplateOptions options = new VCloudTemplateOptions(); options.customizationScript(""); }
@Test public void testcustomizationScript() { VCloudTemplateOptions options = new VCloudTemplateOptions(); options.customizationScript("mykeypair"); assertEquals(options.getCustomizationScript(), "mykeypair"); }
@Test(expectedExceptions = NullPointerException.class, expectedExceptionsMessageRegExp = "customizationScript must be defined") public void testcustomizationScriptNPE() { customizationScript(null); }