ImapFeatures { public static ImapFeatures of(Feature... features) { return new ImapFeatures(ImmutableSet.copyOf(features)); } private  ImapFeatures(ImmutableSet<Feature> supportedFeatures); static ImapFeatures of(Feature... features); Set<Feature> supportedFeatures(); boolean supports(Feature... features);  }
@Test void ofShouldThrowOnNullFeature() { assertThatThrownBy(() -> ImapFeatures.of((Feature)null)) .isInstanceOf(NullPointerException.class); }
@Test void ofShouldThrowOnNullFeatureArray() { assertThatThrownBy(() -> ImapFeatures.of((Feature[])null)) .isInstanceOf(NullPointerException.class); }