"key=\"" + key + "\">" + xml + "</localEntry>";
try {
OMElement elem = parseXMLString(entrySrc, coalesced);
OMElement expectedSerialization = elem.cloneOMElement();
Entry entry = EntryFactory.createEntry(elem, new Properties());
assertEquals(key, entry.getKey());
assertEquals(Entry.INLINE_XML, entry.getType());
OMElement valueElem = parseXMLString(xml, coalesced);
assertTrue(compare(valueElem, (OMElement) entry.getValue()));
OMElement serialization = EntrySerializer.serializeEntry(entry, null);
assertTrue(compare(expectedSerialization, serialization));
} catch (XMLStreamException e) {
fail("Error while parsing entry definition: " + e.getMessage());