}
@Test
public void marshalRpcMethodCallWithMap() throws JAXBException, XMLStreamException {
Map<String, Value> map = new LinkedHashMap<>();
map.put("key1", new Value(1));
map.put("key2", new Value(true));
Rpc rpc = new Rpc("testMethod", new Value(map));
String xml = marshal(rpc);
Assert.assertEquals(xml, "<query xmlns=\"jabber:iq:rpc\"><methodCall><methodName>testMethod</methodName><params><param><value><struct><member><name>key1</name><value><int>1</int></value></member><member><name>key2</name><value><boolean>1</boolean></value></member></struct></value></param></params></methodCall></query>");
}