elem = new Element ("YCbCrCoefficients");
elem.addContent ("10.0 20.0 30.0");
imgElem.addContent (elem);
XmlContentConverter conv = new XmlContentConverter ();
Mix mix = (Mix) conv.toMix (imgElem,null);
BasicDigitalObjectInformation bdoi = mix.getBasicDigitalObjectInformation();
String byteOrder = bdoi.getByteOrder().toString ();
assertEquals ("big endian", byteOrder);
ImageCaptureMetadata icm = mix.getImageCaptureMetadata();
DigitalCameraCapture dcc = icm.getDigitalCameraCapture();
CameraCaptureSettings ccs = dcc.getCameraCaptureSettings();
GPSData gps = ccs.getGPSData();
String gpsVersionID = gps.getGpsVersionID().toString();
assertEquals ("99.5", gpsVersionID);
GPSDestLatitude dlat = gps.getGPSDestLatitude();
double deg = dlat.getDegrees().toRational().getDouble();
double min = dlat.getMinutes().toRational().getDouble();
double sec = dlat.getSeconds().toRational().getDouble();
assertTrue ((int) deg == 33);
assertTrue ((int) min == 24);
assertTrue ((int) sec == 51);
BasicImageInformation bii = mix.getBasicImageInformation();
BasicImageCharacteristics bic = bii.getBasicImageCharacteristics();
PhotometricInterpretation phi = bic.getPhotometricInterpretation();
List<ReferenceBlackWhite> rbwList = phi.getReferenceBlackWhites();
ReferenceBlackWhite rbw = rbwList.get(0);
List<Component> compList = rbw.getComponents();