ProcessExtensionResourceReader implements ResourceReader<ProcessExtensionModel> { @Override public Predicate<String> getResourceNameSelector() { return resourceName -> resourceName.endsWith("-extensions.json"); } ProcessExtensionResourceReader(ObjectMapper objectMapper,
                                          Map<String, VariableType> variableTypeMap); @Override Predicate<String> getResourceNameSelector(); @Override ProcessExtensionModel read(InputStream inputStream);  }
@Test public void shouldSelectFileWithSuffixHyphenExtensionsDotJson() { assertThat(reader.getResourceNameSelector().test("any-path/to/my-extension/my-process-extensions.json")) .isTrue(); }
@Test public void shouldNotSelectSelectJsonFileWithoutSuffixHyphenExtensionsDotJson() { assertThat(reader.getResourceNameSelector().test("any-path/to/my-extension/my-process-other.json")) .isFalse(); }