// Test for ensuring that we can use ".withRootName()" to override
// default name AND annotation
public void testRenamedRootItem() throws Exception
{
XmlMapper xmlMapper = new XmlMapper();
String xml = xmlMapper
.writer()
.withRootName("Shazam")
.writeValueAsString(new SampleResource(123, "Foo", "Barfy!"))
.trim();
xml = removeSjsxpNamespace(xml);