### Question:
SimplePayload implements ExtensionElement { public SimplePayload(String xmlPayload) { XmlPullParser parser; try { parser = PacketParserUtils.getParserFor(xmlPayload); } catch (XmlPullParserException | IOException e) { throw new AssertionError(e); } QName qname = parser.getQName(); payload = xmlPayload; elemName = StringUtils.requireNotNullNorEmpty(qname.getLocalPart(), "Could not determine element name from XML payload"); ns = StringUtils.requireNotNullNorEmpty(qname.getNamespaceURI(), "Could not determine namespace from XML payload"); } SimplePayload(String xmlPayload); @Deprecated  SimplePayload(String elementName, String namespace, CharSequence xmlPayload); @Override String getElementName(); @Override String getNamespace(); @Override String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace); @Override String toString();  }### Answer:
@Test public void simplePayloadTest() { String xmlPayload = "<element xmlns='https: SimplePayload simplePayload = new SimplePayload(xmlPayload); assertEquals("element", simplePayload.getElementName()); assertEquals("https: assertEquals(xmlPayload, simplePayload.toXML().toString()); }