DefaultInputItem implements InputItem { @Override public MultivaluedMap<String, String> getHeaders() { return headers; } DefaultInputItem(FileItem fileItem, Providers providers); @Override String getName(); @Override String getFilename(); @Override MediaType getMediaType(); @Override MultivaluedMap<String, String> getHeaders(); @Override InputStream getBody(); @Override T getBody(Class<T> type, Type genericType); @Override String getBodyAsString();  }
@Test public void getsHeadersAsEmptyMap() throws Exception { assertTrue(inputItem.getHeaders().isEmpty()); }