importer.importData();
reader.close();
assertFalse( l.error );
assertEquals( XmlImporter.IMPORTING_COMPLETED, l.status );
PhotoInfo p = PhotoInfo.retrievePhotoInfo( UUID.fromString( "65bd68f7-79f4-463b-9e37-0a91182e6499") );
assertEquals( "NIKON D200", p.getCamera() );
assertEquals( 8.0, p.getFStop() );
assertEquals( "Digital", p.getFilm() );
assertEquals( 100, p.getFilmSpeed() );
assertEquals( 0, p.getQuality() );
ChannelMapOperation cm = p.getColorChannelMapping();
ColorCurve c = cm.getChannelCurve( "value" );
assertEquals( 0.4, c.getY( 1 ) );
assertEquals( 0.5, c.getX( 1 ) );
boolean foundOrig = false;
for ( int n = 0; n < p.getNumInstances(); n++ ) {
ImageInstance i = p.getInstance( n );
if ( i.getInstanceType() == ImageInstance.INSTANCE_TYPE_ORIGINAL ) {
cm = i.getColorChannelMapping();
c = cm.getChannelCurve( "value" );
assertEquals( 0.2, c.getY( 1 ) );
assertEquals( 0.6, c.getX( 1 ) );