LOUtils { public static String getVersion() throws CelloException { String rtn = null; final Properties properties = new Properties(); try { properties.load( LOUtils.class.getClassLoader().getResourceAsStream("cello-logicoptimization.properties")); } catch (IOException e) { throw new CelloException("Unable to get version."); } rtn = properties.getProperty("org.cellocad.v2.cello-logicoptimization.version"); return rtn; }  static String getVersion(); static URL getResource(final String resource); static String getResourceAsString(final String resource);  }
@Test public void getVersion_None_ShouldReturnVersion() throws CelloException { String version = LOUtils.getVersion(); Matcher m = Utils.SEM_VER_PATTERN.matcher(version); assertTrue(m.matches()); }