private TemplateWSService.Variable[] getVaribleFormatForPassing(Variable[] parameters)
 {
     TemplateWSService.Variable[] javaVariables = new TemplateWSService.Variable[
         parameters.Length];
     TemplateWSService.Variable variable;
     for(int i = 0; i < parameters.Length; i++)
     {
         variable = new TemplateWSService.Variable();
         variable.name = parameters[i].Name;
         variable.type = parameters[i].ArgumentType.Value;
         variable.value = parameters[i].Value;
         javaVariables[i] = variable;
     }
     return javaVariables;
 }
 public void TestServer_With_Passing_Arguments()
 {
     using(var connector = new JaxWSConnector())
     using(var output = new StringWriter())
     {
         ArgumentType.SetJavaTypes();
         Variable variable = new Variable("s", ArgumentType.String);
         variable.Value = "test";
         connector.CompileJavaCode("output.write(s);",
             new String[0], output, variable);
         Assert.AreEqual("test", output.ToString());
     }
 }