@Test
public void testVersionNumber() {

  // Version must have 3 parts i.e. x.y.z and can have an optional of -SNAPSHOT suffixed.
  Pattern versionPattern = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(-\\w+)?");
  Matcher versionMatcher = versionPattern.matcher(BigtableHBaseVersion.getVersion());
  assertTrue("incorrect version format", versionMatcher.matches());
  int result =
      ComparisonChain.start()
          .compare(1, Integer.parseInt(versionMatcher.group(1)))
          .compare(14, Integer.parseInt(versionMatcher.group(2)))
          .compare(1, Integer.parseInt(versionMatcher.group(3)))
          .result();
  assertTrue("Expected BigtableHBaseVersion.getVersion() to be at least 1.14.1", result <= 0);
}