@Test
public void nestedZipInZipInputStream() throws Exception
{

  ICloseableDirectory outer = FileSystem.getFSRoot(new FileInputStream("fileSystemTest/outer.zip"));
  try {
    IFile innerFile = outer.getFile("app2.zip");
    assertNotNull(innerFile);
    IDirectory inner = innerFile.convertNested();
    assertNotNull(inner);
    File desiredFile = new File(new File(getTestResourceDir(), "/app1"), "META-INF/APPLICATION.MF");
    // no size information when stream reading :(
    runBasicDirTest(inner, "app2.zip/", -1, desiredFile.lastModified());
    runBasicDirTest(inner.toCloseable(), "app2.zip/", desiredFile.length(), desiredFile.lastModified());
  } finally {
    outer.close();
    Field f = outer.getClass().getDeclaredField("tempFile");
    f.setAccessible(true);
    assertFalse(((File)f.get(outer)).exists());
  }
}