BuildInformation { public static String getVersion() { String versionString = buildProperties.get("project.version").toString(); return versionString.replaceAll("-.*$", ""); }  static String getVersion(); static String getInceptionYear(); static String getBuildYear();  }
@Test public void testVersion() { String version = BuildInformation.getVersion(); assertNotNull(version); Version.valueOf(version); }