### Question:
LocalBaseImageSteps { @VisibleForTesting static boolean isGzipped(Path path) throws IOException { try (InputStream inputStream = Files.newInputStream(path)) { inputStream.mark(2); int magic = (inputStream.read() & 0xff) | ((inputStream.read() << 8) & 0xff00); return magic == GZIPInputStream.GZIP_MAGIC; } }    }### Answer:
@Test public void testIsGzipped() throws URISyntaxException, IOException { Assert.assertTrue( LocalBaseImageSteps.isGzipped(getResource("core/extraction/compressed.tar.gz"))); Assert.assertFalse( LocalBaseImageSteps.isGzipped(getResource("core/extraction/not-compressed.tar"))); }