### Question:
RelatedProductsImpl implements ProductCarousel { @Override public String getTitleType() { return TitleTypeProvider.getTitleType(currentStyle, properties); }  @Override boolean isConfigured(); @Override List<ProductListItem> getProducts(); @Override AbstractProductsRetriever getProductsRetriever(); @Override String getTitleType();  }### Answer:
@Test public void testRelatedProducts() throws Exception { setUp(RelationType.RELATED_PRODUCTS, "graphql/magento-graphql-relatedproducts-result.json", false); assertProducts(); Assert.assertEquals("h2", relatedProducts.getTitleType()); }
@Test public void testUpsellProducts() throws Exception { setUp(RelationType.UPSELL_PRODUCTS, "graphql/magento-graphql-upsellproducts-result.json", true); assertProducts(); Assert.assertEquals("h3", relatedProducts.getTitleType()); }