String applicationClientName = "applicationclient_test"; // must match JNDI name in jboss-client.xml or display-name in application-client.xml
String name = new Date().toString();
String args[] = { name };
ClientLauncher launcher = new ClientLauncher();
launcher.launch(mainClassName, applicationClientName, args);
{
String actual = HelloWorldClient.getResult();
String expected = "Hi " + name + ", how are you?";
assertEquals(expected, actual);