code: public void setFileContents(final String key, final byte[] contents) {
  		MockFileItem fileItem = new MockFileItem();
  		fileItem.set(contents);
  		files.put(key, new FileItem[]{fileItem});
  	}
docs: Sets mock file upload contents.
  
  @param key the parameter key.
  @param contents the file binary data.