@Test(dependsOnMethods = {"testMetadataLevel"})
  public void testMetadataLevelEquivilentPlaneData() throws FormatException, IOException {
    for (int i = 0; i < minimalWrapper.getSeriesCount(); i++) {
      minimalWrapper.setSeries(i);
      wrapper.setSeries(i);
      assertEquals(wrapper.getImageCount(), minimalWrapper.getImageCount());
      for (int j = 0; j < minimalWrapper.getImageCount(); j++) {
        byte[] pixelsOnlyPlane = minimalWrapper.openBytes(j);
        String pixelsOnlySHA1 = sha1(pixelsOnlyPlane);
        byte[] allPlane = wrapper.openBytes(j);
        String allSHA1 = sha1(allPlane);

        if (!pixelsOnlySHA1.equals(allSHA1)) {
          fail(
              String.format(
                  "MISMATCH: Series:%d Image:%d PixelsOnly%s All:%s",
                  i, j, pixelsOnlySHA1, allSHA1));
        }
      }
    }
  }
 /** opens the file using the {@link FormatReader} instance */
 private void open(OMEROWrapper reader, OMEROMetadataStoreClient store, CheckedPath targetFile)
     throws FormatException, IOException {
   // reader.close(); This instance is no longer re-used
   reader.setMetadataStore(store);
   reader.setMinMaxStore(store);
   store.setReader(reader.getImageReader());
   targetFile.bfSetId(reader);
   // reset series count
   if (log.isDebugEnabled()) {
     log.debug("Image Count: " + reader.getImageCount());
   }
 }