public static String findContainingJar(Class<?> clazz) {
    return findContainingResource(clazz.getClassLoader(), clazz.getName(), "jar");
  }
@Test(timeout=10000)
  public void testFindContainingJar() {
    String containingJar = ClassUtil.findContainingJar(Assertions.class);
    Assertions
        .assertThat(containingJar)
        .describedAs("Containing jar for %s", Assertions.class)
        .isNotNull();
    File jarFile = new File(containingJar);
    Assertions
        .assertThat(jarFile)
        .describedAs("Containing jar %s", jarFile)
        .exists();
    Assertions
        .assertThat(jarFile.getName())
        .describedAs("Containing jar name %s", jarFile.getName())
        .matches("assertj-core.*[.]jar");
  }