title: Can not register jersey MultiPartFeature
body: <p>I'm trying to create a test case for my Jersey REST application.</p>
  
  <p>I added already in <code>pom.xml</code>:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-media-multipart&lt;/artifactId&gt;
      &lt;version&gt;2.25&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I'm creating my client with:</p>
  
  <pre><code>Client client = ClientBuilder.newBuilder()
          .register(MoxyJsonFeature.class)
          .register(MultiPartFeature.class)
          .build();
  </code></pre>
  
  <p>But this is failing with an <code>InstantiationException</code> on line <code>.register(MultiPartFeature.class)</code>. Here is the full stack trace:</p>
  
  <pre><code>java.lang.RuntimeException: java.lang.InstantiationException: org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide
  
      at __randomizedtesting.SeedInfo.seed([8269888A1B7E6430]:0)
      at org.apache.cxf.jaxrs.impl.ConfigurationImpl.createProvider(ConfigurationImpl.java:199)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl.register(ConfigurableImpl.java:102)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl.register(ConfigurableImpl.java:97)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl$FeatureContextImpl.register(ConfigurableImpl.java:139)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl$FeatureContextImpl.register(ConfigurableImpl.java:120)
      at org.glassfish.jersey.media.multipart.MultiPartFeature.configure(MultiPartFeature.java:67)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl.register(ConfigurableImpl.java:86)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl.doRegister(ConfigurableImpl.java:117)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl.register(ConfigurableImpl.java:102)
      at org.apache.cxf.jaxrs.impl.ConfigurableImpl.register(ConfigurableImpl.java:97)
      at org.apache.cxf.jaxrs.client.spec.ClientBuilderImpl.register(ClientBuilderImpl.java:56)
      at org.apache.cxf.jaxrs.client.spec.ClientBuilderImpl.register(ClientBuilderImpl.java:35)
      at fr.pilato.elasticsearch.crawler.fs.test.integration.AbstractRestITCase.startRestClient(AbstractRestITCase.java:54)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1764)
      at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:811)
      at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:827)
      at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
      at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:367)
      at java.lang.Thread.run(Thread.java:745)
  Caused by: java.lang.InstantiationException: org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide
      at java.lang.Class.newInstance(Class.java:427)
      at org.apache.cxf.jaxrs.impl.ConfigurationImpl.createProvider(ConfigurationImpl.java:197)
      ... 23 more
  Caused by: java.lang.NoSuchMethodException: org.glassfish.jersey.media.multipart.internal.MultiPartReaderClientSide.&lt;init&gt;()
      at java.lang.Class.getConstructor0(Class.java:3082)
      at java.lang.Class.newInstance(Class.java:412)
      ... 24 more
  </code></pre>
  
  <p>I don't understand what I'm missing here. I followed <a href="https://jersey.java.net/documentation/latest/media.html#multipart" rel="nofollow noreferrer">Jersey documentation</a> but I might have missed something.
  When I remove the line <code>.register(MultiPartFeature.class)</code>, I'm able to run REST tests normally using my client.</p>
  
  <p>Any idea?</p>