@@ -0,0 +1,2575 @@
+//%0A// BackReferenceTest.java%0A//%0A%0A/*%0AOME Bio-Formats package for reading and converting biological file formats.%0ACopyright (C) 2005-@year@ UW-Madison LOCI and Glencoe Software, Inc.%0A%0AThis program is free software; you can redistribute it and/or modify%0Ait under the terms of the GNU General Public License as published by%0Athe Free Software Foundation; either version 2 of the License, or%0A(at your option) any later version.%0A%0AThis program is distributed in the hope that it will be useful,%0Abut WITHOUT ANY WARRANTY; without even the implied warranty of%0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0AGNU General Public License for more details.%0A%0AYou should have received a copy of the GNU General Public License%0Aalong with this program; if not, write to the Free Software%0AFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A*/%0A%0Apackage loci.formats.utests.xml;%0A%0Aimport static org.testng.AssertJUnit.assertEquals;%0Aimport static org.testng.AssertJUnit.assertNotNull;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0Aimport loci.common.services.DependencyException;%0Aimport loci.common.services.ServiceException;%0Aimport loci.common.services.ServiceFactory;%0Aimport loci.formats.ome.OMEXMLMetadata;%0Aimport loci.formats.services.OMEXMLService;%0A%0Aimport ome.xml.model.OME;%0Aimport ome.xml.model.Plate;%0Aimport ome.xml.model.Well;%0A%0Aimport org.testng.annotations.BeforeMethod;%0Aimport org.testng.annotations.Test;%0A%0A/**%0A * %3Cdl%3E%3Cdt%3E%3Cb%3ESource code:%3C/b%3E%3C/dt%3E%0A * %3Cdd%3E%3Ca href=%22http://trac.openmicroscopy.org.uk/ome/browser/bioformats.git/components/bio-formats/test/loci/formats/utests/BackReferenceTest.java%22%3ETrac%3C/a%3E,%0A * %3Ca href=%22http://git.openmicroscopy.org/?p=bioformats.git;a=blob;f=components/bio-formats/test/loci/formats/utests/BackReferenceTest.java;hb=HEAD%22%3EGitweb%3C/a%3E%3C/dd%3E%3C/dl%3E%0A *%0A * @author Melissa Linkert melissa at glencoesoftware.com%0A */%0Apublic class BackReferenceTest %7B%0A%0A  private OMEXMLService service;%0A  private OMEXMLMetadata metadata;%0A%0A  @BeforeMethod%0A  public void setUp() throws DependencyException, ServiceException, IOException%0A  %7B%0A    ServiceFactory sf = new ServiceFactory();%0A    service = sf.getInstance(OMEXMLService.class);%0A    metadata = service.createOMEXMLMetadata();%0A  %7D%0A%0A  @Test%0A  public void testPlateWellReferences() %7B%0A    metadata.setPlateID(%22Plate:0%22, 0);%0A    metadata.setWellID(%22Well:0:0%22, 0, 0);%0A%0A    OME root = (OME) metadata.getRoot();%0A%0A    Plate plate = root.getPlate(0);%0A    Well well = plate.getWell(0);%0A%0A    assertNotNull(plate);%0A    assertNotNull(well);%0A    assertEquals(plate, well.getPlate());%0A  %7D%0A%0A%7D%0A

Add one back reference test