Set<Environment> set = new HashSet<>(Arrays.asList(supported));
assumeEnvironment(set);
}
private void assumeEnvironment(Set<Environment> supported) {
final Environment environment = getEnvironment();
Assume.assumeTrue(String.format("Unsupported environment: %s [%s]", environment, supported), supported.contains(environment));
}