/** * Tests XML marshalling using ISO 19115-3 schema. * This XML fragment contains an identifier. * * @throws JAXBException if an error occurred during marshalling. */ @Test public void testMarshalling() throws JAXBException { final DefaultRepresentativeFraction fraction = new DefaultRepresentativeFraction(8); fraction.getIdentifierMap().putSpecialized(IdentifierSpace.ID, "scale"); roundtrip(fraction, "<mri:MD_RepresentativeFraction xmlns:mri=\"" + Namespaces.MRI + '"' + " xmlns:gco=\"" + Namespaces.GCO + '"' + " id=\"scale\">\n" + " <mri:denominator>\n" + " <gco:Integer>8</gco:Integer>\n" + " </mri:denominator>\n" + "</mri:MD_RepresentativeFraction>"); }