* Verifies that the method
* <code>{@link XmlRpcRequestParser#parseRequest(InputStream)}</code> parses
* correctly a XML-RPC request containing array parameters.
*/
public final void testParseRequestWithArrayParameters() {
XmlRpcArray xmlRpcArray = new XmlRpcArray();
xmlRpcArray.add(new XmlRpcString("Luke"));
xmlRpcArray.add(new XmlRpcString("Leia"));
XmlRpcElement[] parameters = { xmlRpcArray };
XmlRpcRequest expected = new XmlRpcRequest(this.serviceName,
this.methodName, parameters);
StringBuffer builder = new StringBuffer();
builder.append("<?xml version=\"1.0\"?>");
builder.append("<methodCall><methodName>");
builder.append(this.serviceAndMethodNames);
builder.append("</methodName><params><param><value><array><data>");
XmlRpcElement[] elements = xmlRpcArray.getElements();
int memberCount = elements.length;
for (int i = 0; i < memberCount; i++) {
XmlRpcString element = (XmlRpcString) elements[i];
builder.append("<value>");