### Question:
ClassPathUtil { public static String getAbsolutePath(String file){ if(Boolean.parseBoolean(System.getProperty("EXEC.JAR"))){ return System.getProperty("EXEC.ABSOLUTE.DIR") + File.separator + file; } try { file = file.replace("\\", "/"); return Paths.get(ClassPathUtil.class.getResource(file).toURI()).toAbsolutePath().toString(); } catch (URISyntaxException e) { e.printStackTrace(); return null; } }  static String getAbsolutePath(String file); static boolean exists(String file); static String path(String file);  }### Answer:
@Test public void itShouldGetPath() { Assert.assertNotNull(ClassPathUtil.getAbsolutePath("/samples/readme.md")); }