TarEntryIdentificationRequest implements IdentificationRequest<InputStream> { @Override public final String getExtension() { return extension; } TarEntryIdentificationRequest(final RequestMetaData metaData, final RequestIdentifier identifier,
            final Path tempDir); @Override final void open(InputStream in); @Override final void close(); @Override final String getExtension(); @Override final String getFileName(); @Override final long size(); @Override final InputStream getSourceInputStream(); @Override final RequestMetaData getRequestMetaData(); @Override final RequestIdentifier getIdentifier(); @Override byte getByte(long position); @Override WindowReader getWindowReader();  }
@Test public void testGetExtension() { assertEquals(identifier, tarResource.getIdentifier()); assertEquals("xml", tarResource.getExtension()); assertEquals("profile.xml", tarResource.getFileName()); assertEquals("tar:" + Paths.get(fileName).toUri() + "!/saved/profile.xml", tarResource.getIdentifier().getUri().toString()); assertEquals(metaData, tarResource.getRequestMetaData()); }