/**
* Test SoapClient correctly clears previously set values
*/
public void testSoapClientXMLData()
{
SoapClient sc = getSoapClient();
StringBuffer initial = new StringBuffer("Initial Value");
sc.setXMLData(initial);
assertEquals("getXMLData is not set with initial value",
initial.toString(), sc.getXMLData().toString());
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?><ip=@IP><port=@PORT>");
sc.setXMLData(sb);
assertEquals(sc.getXMLData().length(), sb.length());
assertEquals("getXMLData does not return the same StringBuffer set by setXMLData",
sb.toString(), sc.getXMLData().toString());
}