@Test
public void testIgnoreNamespacesPackageInfo2() throws Exception {
JSONProvider<Book2NoRootElement> p = new JSONProvider<Book2NoRootElement>();
p.setMarshallAsJaxbElement(true);
p.setIgnoreNamespaces(true);
Book2NoRootElement book = new Book2NoRootElement(123);
ByteArrayOutputStream os = new ByteArrayOutputStream();
p.writeTo(book, Book2NoRootElement.class, Book2NoRootElement.class,
Book2NoRootElement.class.getAnnotations(),
MediaType.APPLICATION_JSON_TYPE, new MetadataMap<String, Object>(), os);