public void testNamespacePrefix() throws Exception
{
JAXBContext ctx = JAXBContext.newInstance(PurchaseOrderType.class);
PurchaseOrderType po = new PurchaseOrderType();
Items items = new Items();
Item item = new Item();
item.setComment("Tetsing");
item.setPartNum("242-GZ");
item.setProductName("My Thing");
item.setQuantity(6);
item.setUSPrice(new BigDecimal(13.99));
items.getItem().add(item);
po.setItems(items);
Marshaller marshaller = ctx.createMarshaller();
XmlSchema xmlSchema = PurchaseOrderType.class.getPackage().getAnnotation(XmlSchema.class);
XmlNamespacePrefixMapper mapper = new XmlNamespacePrefixMapper(xmlSchema.xmlns());