@Test
public void testSimpleCase() throws Exception {

	Map<String,Object> inputMap = new HashMap<String, Object>();
	
	BodyBuilder builder = createBuilder(wsdlResourcePath("TestServices-rpcencoded.wsdl"), "countString");
	
	assertTrue("Wrong type of builder created",builder instanceof EncodedBodyBuilder);
	
	inputMap.put("str", "Roger Ramjet");
	SOAPElement body = builder.build(inputMap);
               
               Iterator<SOAPElement> children = body.getChildElements();
               
               assertTrue("empty body content", children.hasNext());
               
               SOAPElement child = children.next();
               
               assertTrue("wrong body content (must be '{}str')", "str".equals(child.getLocalName()) && child.getNamespaceURI() == null);
               
               String type = child.getAttributeNS(XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI, "type");
               assertNotNull("missing xsi:type", type);
               assertTrue("wrong xsi:type", "xsd:string".equals(type));
               assertTrue("wrong text value", "Roger Ramjet".equals(child.getTextContent()));
}