ProtocolVersion { public static Optional<String> getVersion(){ try { return Optional.of(ResourceBundle.getBundle("io.cucumber.messages.version").getString("messages.version")); } catch (Exception ignored){ return Optional.empty(); } }  static Optional<String> getVersion();  }
@Test void should_have_a_resource_bundle_version() { String version = ProtocolVersion.getVersion().get(); assertThat(version, Matchers.matchesPattern("\\d+\\.\\d+\\.\\d+(-SNAPSHOT)?")); }