EnvironmentSupportedVersions { public boolean supports(String muleVersion) { return environmentSupportedVersions.stream().anyMatch(v -> isSameVersion(v, muleVersion)); } EnvironmentSupportedVersions(Collection<String> environmentSupportedVersions);  EnvironmentSupportedVersions(String environmentVersion); boolean supports(String muleVersion); @Override boolean equals(Object other); @Override int hashCode();  }
@Test public void supportsTest() { assertThat("The version " + version + " should " + (isSupported ? "" : " not ") + " be supported.", supportedVersion.supports(version), equalTo(isSupported)); }