public static SerdeFeatures of(final SerdeFeature... features) {
    return new SerdeFeatures(ImmutableSet.copyOf(features));
  }
@Test(expected = IllegalArgumentException.class)
  public void shouldThrowOnIncompatibleFeatures() {
    // When:
    SerdeFeatures.of(WRAP_SINGLES, UNWRAP_SINGLES);
  }