return "Expected: " + control + " Got: " + test;
StringBuffer buf = new StringBuffer(); if(controlElement==null && testElement== null){ return "Expected: " + controlAttribute + " Got: " + testAttribute; }else{ buf.append("Expected: "); if(controlElement==null){ buf.append("null"); }else{ if(controlElement.getText()!=null &&!controlElement.getText().equals("")){ buf.append("<"); buf.append(controlElement.getName()); buf.append(">"); buf.append(controlElement.getText()); buf.append("</"); buf.append(controlElement.getName()); buf.append(">"); }else{ buf.append("<"); buf.append(controlElement.getName()); buf.append("/>"); } } buf.append(", but was: "); if(testElement==null){ buf.append("null"); }else{ if(testElement.getText()!=null &&!testElement.getText().equals("")){ buf.append("<"); buf.append(testElement.getName()); buf.append(">"); buf.append(testElement.getText()); buf.append("</"); buf.append(testElement.getName()); buf.append(">"); }else{ buf.append("<"); buf.append(testElement.getName()); buf.append("/>"); } } } return buf.toString();
    public String toString(){        return "Expected: " + control + " Got: " + test;    }