@Override public Class<?> loadClass(String name) throws ClassNotFoundException {
        if (name.equals(lottieTaskName)) {
          try (InputStream in = ClassLoader.getSystemResourceAsStream(lottieTaskName.replace('.', '/') + ".class")) {
            byte[] bytes = new byte[10 * 1024 * 1024];
            int read  = in.read(bytes);
            return defineClass(name, bytes, 0, read);
          } catch (IOException e) {
            throw new ClassNotFoundException(name, e);
          }
        }
        return super.loadClass(name);
      }
This hangs on CI but not locally.
lottie/src/test/java/com/airbnb/lottie/LottieTaskTest.java