### Question:
MoreBodyPublishers { public static MimeBodyPublisher ofMediaType(BodyPublisher bodyPublisher, MediaType mediaType) { return new ForwardingMimeBodyPublisher(bodyPublisher, mediaType); } private  MoreBodyPublishers(); static MimeBodyPublisher ofMediaType(BodyPublisher bodyPublisher, MediaType mediaType); static BodyPublisher ofObject(Object object, @Nullable MediaType mediaType);  }### Answer:
@Test void ofMediaType() { var content = "some content"; var plainText = MediaType.of("text", "plain"); MimeBodyPublisher publisher = MoreBodyPublishers.ofMediaType(ofString(content), plainText); assertEquals(plainText, publisher.mediaType()); assertEquals(content, US_ASCII.decode(BodyCollector.collect(publisher)).toString()); }