GML3MockData.element(GML.measure, document, document);
document.getDocumentElement().setAttribute("uom", "http://someuri");
document.getDocumentElement().appendChild(document.createTextNode("1234"));
Measure measure = (Measure) parse();
assertNotNull(measure);
assertEquals(1234, measure.doubleValue(), 0.1);
assertEquals("http://someuri", ((BaseUnit) measure.getUnit()).getSymbol());
}
public void testEncode() throws Exception {
ComplexAttribute myCode = gmlMeasureType(GML.measure, "12", "m");