Assert.assertEquals(((Element) person.getAttribute("name")).getAttribute("first"), result.firstName);
Assert.assertEquals(((Element) person.getAttribute("name")).getAttribute("last"), result.lastName);
Assert.assertEquals(((Element) person.getAttribute("employment")).getAttribute("salary") + "", result.salary);
Assert.assertEquals(((Element) person.getAttribute("employment")).getAttribute("jobTitle"), result.jobTitle);
Element mapBack = mapper.map(result, Element.class);
Assert.assertEquals(((Element) person.getAttribute("name")).getAttribute("first"),
((Element) mapBack.getAttribute("name")).getAttribute("first"));
Assert.assertEquals(((Element) person.getAttribute("name")).getAttribute("last"),
((Element) mapBack.getAttribute("name")).getAttribute("last"));