NullMultipartInterceptor implements MultipartInterceptor { public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException { throw new UnsupportedOperationException(); }  boolean accepts(ResourceMethod method); void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance);  }
@Test(expected=UnsupportedOperationException.class) public void shouldThrowUnsuportedOperationExceptionWhenInvoked() { new NullMultipartInterceptor().intercept(null, null, null); }