final HttpStubProvider provider = new HttpStubProvider(url, null) {
@Override
public HeaderAndBody put(String id, byte[] data) throws HttpException {
byteBuffer.put(data);
return new HeaderAndBody("{}".getBytes(), new HashMap<String, Object>());
}
};
PipeConfig config = new PipeConfig(url, MultipartRequestBuilderTest.MultiPartData.class);
config.setRequestBuilder(new MultipartRequestBuilder<MultipartRequestBuilderTest.MultiPartData>());