SonarQubeTaskUtils { public static URL getJarPath() { String pathToClass = "/" + SonarQubeTask.class.getName().replace('.', '/') + ".class"; URL url = SonarQubeTask.class.getResource(pathToClass); if (url != null) { String uri = extractURI(pathToClass, url.toString()); if (uri != null) { try { return new URL(uri); } catch (MalformedURLException e) { return null; } } } return null; } private  SonarQubeTaskUtils(); static URL getJarPath(); static int getAntLoggerLever(Project project); static String getTaskVersion();  }
@Test public void shouldGetJarPath() { assertThat(SonarQubeTaskUtils.getJarPath()).isNotNull(); }