### Question:
ZipByteArrayInputAdapter extends ZipInputAdapter { @Override public void closeInputStream() throws IOException { if (myBAIS != null) { myBAIS.close(); myBAIS = null; } } ZipByteArrayInputAdapter(String name, String location, byte[] byteArray, int method); @Override void closeInputStream(); @Override InputStream getInputStream(); @Override String getLocation(); @Override String getName();  }### Answer:
@Test public void testCloseInputStream() throws IOException { try (InputStream in = myTestObject.getInputStream()) { myTestObject.closeInputStream(); } myTestObject.closeInputStream(); }