serilizedAndGetInputStrem(bomp, BufferedOutMultiPart.class, mt, headers);
MultivaluedMapImpl<String, String> headers2 = convertHeaders(headers);
BufferedInMultiPartProvider inProvider = new BufferedInMultiPartProvider();
inProvider.setProviders(getProviders());
BufferedInMultiPart imMP =
inProvider.readFrom(BufferedInMultiPart.class, null, null, mt, headers2, bais);
assertEquals(imMP.getSize(), 1);
InPart part = imMP.getParts().get(0);
assertEquals(part.getHeaders().getFirst("NaMe"), "value");
String s = part.getBody(String.class, null, getProviders());
assertEquals(s, body);
// bomp.write(os, null);