public static boolean canLoad(String filePath) {
    if (filePath == null) {
      return false;
    }
    try (DataInputStream dis = new DataInputStream(Files.newInputStream(Paths.get(filePath)))) {
      int magic = dis.readInt();
      return magic == CLASS_MAGIC || magic == BTraceProbePersisted.MAGIC;
    } catch (IOException ignored) {
    }
    return false;
  }
@Test
  void canLoadBTracePack() throws Exception {
    URL rsrc = BTraceProbeFactory.class.getResource("/resources/classdata/AllStuff.btrc");
    assertNotNull(rsrc);

    assertTrue(BTraceProbeFactory.canLoad(new File(rsrc.toURI()).getPath()));
  }