GaxProperties { public static String getGaxVersion() { return GAX_VERSION; } private  GaxProperties(); static String getLibraryVersion(Class<?> libraryClass); static String getLibraryVersion(Class<?> libraryClass, String propertyName); static String getJavaVersion(); static String getGaxVersion();  }
@Test public void testGaxVersion() { String gaxVersion = GaxProperties.getGaxVersion(); assertTrue(Pattern.compile("^\\d+\\.\\d+\\.\\d+").matcher(gaxVersion).find()); String[] versionComponents = gaxVersion.split("\\."); int major = Integer.parseInt(versionComponents[0]); int minor = Integer.parseInt(versionComponents[1]); assertTrue(major >= 1); if (major == 1) { assertTrue(minor >= 56); } }