SeProxyService { public String getVersion() { try { InputStream propertiesIs = Thread.currentThread() .getContextClassLoader() .getResourceAsStream("META-INF/keyple-core.properties"); Properties prop = new Properties(); prop.load(propertiesIs); String version = prop.getProperty("version"); if (version != null) { return version; } propertiesIs.close(); } catch (IOException e) { logger.error("Keyple core properties file not found in META_INF"); } return "no-version-found"; } private  SeProxyService(); static SeProxyService getInstance(); ReaderPlugin registerPlugin(PluginFactory pluginFactory); boolean unregisterPlugin(String pluginName); synchronized boolean isRegistered(String pluginName); synchronized Map<String, ReaderPlugin> getPlugins(); synchronized ReaderPlugin getPlugin(String name); String getVersion();  }
@Test public void testGetVersion() { String regex = "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$"; String version = SeProxyService.getInstance().getVersion(); logger.info("Version of SeProxyService {}", version); System.out.println("Version of SeProxyService " + version); assertTrue(version.matches(regex)); }