NovaTemplateOptions extends TemplateOptions implements Cloneable { public Optional<Set<String>> getSecurityGroupNames() { return securityGroupNames; }  @Override NovaTemplateOptions clone(); @Override void copyTo(TemplateOptions to); @Override boolean equals(Object o); @Override int hashCode(); @Override ToStringHelper string(); NovaTemplateOptions autoAssignFloatingIp(boolean enable); NovaTemplateOptions generateKeyPair(boolean enable); NovaTemplateOptions keyPairName(String keyPairName); NovaTemplateOptions securityGroupNames(String... securityGroupNames); NovaTemplateOptions securityGroupNames(Iterable<String> securityGroupNames); boolean shouldAutoAssignFloatingIp(); String getKeyPairName(); boolean shouldGenerateKeyPair(); Optional<Set<String>> getSecurityGroupNames(); byte[] getUserData(); @Override NovaTemplateOptions blockOnPort(int port, int seconds); @Override NovaTemplateOptions inboundPorts(int... ports); @Override NovaTemplateOptions authorizePublicKey(String publicKey); @Override NovaTemplateOptions installPrivateKey(String privateKey); @Override NovaTemplateOptions blockUntilRunning(boolean blockUntilRunning); @Override NovaTemplateOptions dontAuthorizePublicKey(); @Override NovaTemplateOptions nameTask(String name); @Override NovaTemplateOptions runAsRoot(boolean runAsRoot); @Override NovaTemplateOptions runScript(Statement script); @Override NovaTemplateOptions overrideLoginCredentials(LoginCredentials overridingCredentials); @Override NovaTemplateOptions overrideLoginPassword(String password); @Override NovaTemplateOptions overrideLoginPrivateKey(String privateKey); @Override NovaTemplateOptions overrideLoginUser(String loginUser); @Override NovaTemplateOptions overrideAuthenticateSudo(boolean authenticateSudo); @Override NovaTemplateOptions userMetadata(Map<String, String> userMetadata); @Override NovaTemplateOptions userMetadata(String key, String value); NovaTemplateOptions userData(byte[] userData); static final NovaTemplateOptions NONE; }
@Test public void testDefaultGroupsVarArgsEmpty() { NovaTemplateOptions options = new NovaTemplateOptions(); assertEquals(options.getSecurityGroupNames(), Optional.absent()); }