@CoberturaIgnore
public void printVersion() {
String version = String.format("\nstubby4j v%s", "x.x.xx");
final URLClassLoader classLoader = (URLClassLoader) getClass().getClassLoader();
try {
final URL url = classLoader.findResource("META-INF/MANIFEST.MF");
final Manifest manifest = new Manifest(url.openStream());
final String rawVersion = manifest.getMainAttributes().getValue("Implementation-Version");
version = String.format("\nstubby4j v%s", rawVersion);
} catch (Exception e) {
//Do nothing