public static String findClassLocation(Class<?> clazz) {
    return findContainingResource(clazz.getClassLoader(), clazz.getName(), "file");
  }
@Test(timeout = 10000)
  public void testFindContainingClass() {
    String classFileLocation = ClassUtil.findClassLocation(ViewFileSystem.class);
    Assertions
        .assertThat(classFileLocation)
        .describedAs("Class path for %s", ViewFileSystem.class)
        .isNotNull();
    File classFile = new File(classFileLocation);
    Assertions
        .assertThat(classFile)
        .describedAs("Containing class file %s", classFile)
        .exists();
    Assertions
        .assertThat(classFile.getName())
        .describedAs("Containing class file name %s", classFile.getName())
        .matches("ViewFileSystem.class");
  }