### Question:
Hdfm { static byte[] inflate(byte[] orig) throws ItlException, ZipException { boolean probablyCompressed = (orig.length >= 1 && orig[0] == 0x78); byte[] inflated = null; try { InflaterInputStream isInflater = new InflaterInputStream(new ByteArrayInputStream(orig), new Inflater()); ByteArrayOutputStream osDecompressed = new ByteArrayOutputStream(orig.length); inflated = new byte[orig.length]; int iDecompressed; while(true) { iDecompressed = isInflater.read(inflated, 0, orig.length); if (iDecompressed == -1) break; osDecompressed.write(inflated, 0, iDecompressed); } inflated = osDecompressed.toByteArray(); osDecompressed.close(); isInflater.close(); } catch (ZipException ze) { if (probablyCompressed) { throw ze; } return orig; } catch (IOException ioe) { throw new ItlException("Error when unzipping the file contents", ioe); } return inflated; } private  Hdfm(String version, int unknown, byte[] headerRemainder, byte[] fileData, Boolean compressContents); static Hdfm read(Input di, long fileLength); static Hdfm readInline(Input di, int length, int consumed); void write(DataOutput o); void write(DataOutput o, byte[] dat); final String version; final int unknown; final byte[] fileData; public Boolean compressContents; }### Answer:
@Test public void uncompressedDataIsNotInflated() throws Exception { byte[] data = "Uncompressed.".getBytes("us-ascii"); assertEquals("The same array is returned when data is not compressed", data, Hdfm.inflate(data)); }