server.setUsername("admin");
server.setPassword("admin");
server.setPartition(Long.toHexString(System.currentTimeMillis()));
// Set server's JVM arguments
Argument arg = new Argument();
arg.setValue("-Xmx512m");
server.addJvmArg(arg);
arg = new Argument();
arg.setValue("-XX:MaxPermSize=128m");
server.addJvmArg(arg);
// Set server's system properties
Property prop = new Property();
prop.setKey("jbosstest.udp.ip_ttl");