### Question:
ProducesComponent extends MarkupComponent<ProducesComponent.Parameters> { public ProducesComponent(Swagger2MarkupConverter.SwaggerContext context) { super(context); } ProducesComponent(Swagger2MarkupConverter.SwaggerContext context); static ProducesComponent.Parameters parameters(List<String> consumes,
                                                          int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }### Answer:
@Test public void testProducesComponent() throws URISyntaxException { List<String> produces = new ArrayList<>(); produces.add("application/json"); produces.add("application/xml"); Swagger2MarkupConverter.SwaggerContext context = createContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new ProducesComponent(context) .apply(markupDocBuilder, ProducesComponent.parameters(produces, OverviewDocument.SECTION_TITLE_LEVEL)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }