@Test
public void testUnwrappedArray() throws Exception {

	BodyBuilder builder = createBuilder(wsdlResourcePath("TestServices-unwrapped.wsdl"), "countStringArray");
	
	assertTrue("Wrong type of builder, it should be Literal based",builder instanceof LiteralBodyBuilder);
	
	Map<String,Object> inputMap = new HashMap<String, Object>();
	inputMap.put("array", "<array><item>1</item><item>2</item><item>3</item></array>");
	
	SOAPElement body = builder.build(inputMap);
	
               assertTrue("Outer element should be named {http://testing.org}array ", "array".equals(body.getLocalName()) && "http://testing.org".equals(body.getNamespaceURI()));
               
               assertTrue("There must be three child nodes in array", body.getChildNodes().getLength() == 3);
               Iterator<Node> items = body.getChildElements(new QName("", "item"));
               assertTrue("Array element should be named item", items.hasNext());
               
               assertTrue("First Array element should have the value '1'", "1".equals(items.next().getTextContent()));
}