### Question:
ClasspathUtil { public static void close(InputStream theInput) { try { if (theInput != null) { theInput.close(); } } catch (IOException e) { ourLog.debug("Closing InputStream threw exception", e); } }  static String loadResource(String theClasspath); @Nonnull static InputStream loadResourceAsStream(String theClasspath); @Nonnull static String loadResource(String theClasspath, Function<InputStream, InputStream> theStreamTransform); @Nonnull static String loadCompressedResource(String theClasspath); @Nonnull static T loadResource(FhirContext theCtx, Class<T> theType, String theClasspath); static void close(InputStream theInput); static Function<InputStream, InputStream> withBom(); static byte[] loadResourceAsByteArray(String theClasspath);  }### Answer:
@Test public void testClose_Null() { ClasspathUtil.close(null); }
@Test public void testClose_Ok() { ClasspathUtil.close(new ByteArrayInputStream(new byte[]{0,1,2})); }
@Test public void testClose_ThrowException() throws IOException { InputStream is = mock(InputStream.class); doThrow(new IOException("FOO")).when(is).close(); ClasspathUtil.close(is); }