@Test
public void testRPCLiteral() throws Exception {

	BodyBuilder builder = createBuilder(wsdlResourcePath("MyService-rpc-literal.wsdl"), "countString");
	
	assertTrue("Wrong type of builder, it should be Literal based",builder instanceof LiteralBodyBuilder);
	
	Map<String,Object> inputMap = new HashMap<String, Object>();
	inputMap.put("str", "abcdef");
	
	SOAPElement body = builder.build(inputMap);
	
	assertTrue("Outer element should be named {http://testing.org}countString","countString".equals(body.getLocalName()) && "http://testing.org".equals(body.getNamespaceURI()));
               
	Node strNode = body.getFirstChild();
	assertEquals("Inner element should be called 'str'","str",strNode.getNodeName());
	assertEquals("str content should be abcdef","abcdef",strNode.getFirstChild().getNodeValue());
}