### Question:
SoftLayerTemplateOptions extends TemplateOptions implements Cloneable { public String getDomainName() { return domainName; }  @Override SoftLayerTemplateOptions clone(); @Override void copyTo(TemplateOptions to); SoftLayerTemplateOptions domainName(String domainName); SoftLayerTemplateOptions blockDevices(Iterable<Integer> capacities); SoftLayerTemplateOptions blockDevices(Integer... capacities); SoftLayerTemplateOptions diskType(@Nullable String diskType); SoftLayerTemplateOptions portSpeed(@Nullable Integer portSpeed); SoftLayerTemplateOptions userData(@Nullable String userData); SoftLayerTemplateOptions primaryNetworkComponentNetworkVlanId(@Nullable Integer primaryNetworkComponentNetworkVlanId); SoftLayerTemplateOptions primaryBackendNetworkComponentNetworkVlanId(@Nullable Integer primaryBackendNetworkComponentNetworkVlanId); SoftLayerTemplateOptions hourlyBillingFlag(@Nullable Boolean hourlyBillingFlag); SoftLayerTemplateOptions dedicatedAccountHostOnlyFlag(@Nullable Boolean dedicatedAccountHostOnlyFlag); SoftLayerTemplateOptions privateNetworkOnlyFlag(@Nullable Boolean privateNetworkOnlyFlag); SoftLayerTemplateOptions postInstallScriptUri(@Nullable String postInstallScriptUri); SoftLayerTemplateOptions sshKeys(Iterable<Integer> sshKeys); SoftLayerTemplateOptions sshKeys(Integer... sshKeys); String getDomainName(); List<Integer> getBlockDevices(); String getDiskType(); Integer getPortSpeed(); String getUserData(); Integer getPrimaryNetworkComponentNetworkVlanId(); Integer getPrimaryBackendNetworkComponentNetworkVlanId(); Boolean isHourlyBillingFlag(); Boolean isDedicatedAccountHostOnlyFlag(); Boolean isPrivateNetworkOnlyFlag(); String getPostInstallScriptUri(); List<Integer> getSshKeys(); @Override SoftLayerTemplateOptions blockOnPort(int port, int seconds); @Override SoftLayerTemplateOptions inboundPorts(int... ports); @Override SoftLayerTemplateOptions authorizePublicKey(String publicKey); @Override SoftLayerTemplateOptions installPrivateKey(String privateKey); @Override SoftLayerTemplateOptions blockUntilRunning(boolean blockUntilRunning); @Override SoftLayerTemplateOptions dontAuthorizePublicKey(); @Override SoftLayerTemplateOptions nameTask(String name); @Override SoftLayerTemplateOptions runAsRoot(boolean runAsRoot); @Override SoftLayerTemplateOptions runScript(Statement script); @Override SoftLayerTemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials); @Override SoftLayerTemplateOptions overrideLoginPassword(String password); @Override SoftLayerTemplateOptions overrideLoginPrivateKey(String privateKey); @Override SoftLayerTemplateOptions overrideLoginUser(String loginUser); @Override SoftLayerTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo); @Override SoftLayerTemplateOptions userMetadata(Map<String, String> userMetadata); @Override SoftLayerTemplateOptions userMetadata(String key, String value); @Override SoftLayerTemplateOptions nodeNames(Iterable<String> nodeNames); @Override SoftLayerTemplateOptions networks(Iterable<String> networks);  }### Answer:
@Test public void testDefaultDomainName() { TemplateOptions options = new SoftLayerTemplateOptions(); assertEquals(options.as(SoftLayerTemplateOptions.class).getDomainName(), "jclouds.org"); }