CommerceEvent extends BaseEvent { @Nullable public String getProductListName() { return mProductListName; } private  CommerceEvent(Builder builder); private  CommerceEvent(); @Override @NonNull String toString(); @Nullable String getScreen(); @Nullable Boolean getNonInteraction(); @Nullable String getProductAction(); @Nullable Integer getCheckoutStep(); @Nullable String getCheckoutOptions(); @Nullable String getProductListName(); @Nullable String getProductListSource(); @Nullable TransactionAttributes getTransactionAttributes(); @Nullable List<Product> getProducts(); @Nullable String getPromotionAction(); @Nullable List<Promotion> getPromotions(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nullable List<Impression> getImpressions(); @Nullable String getCurrency(); @Nullable String getEventName(); @Override BaseMPMessageBuilder getMessage();  }
@Test public void testProductListName() throws Exception { Product product = new Product.Builder("name", "sku", 0).build(); CommerceEvent event = new CommerceEvent.Builder("promo", new Promotion().setId("promo id")).productListName("the list name").nonInteraction(true).build(); assertEquals("the list name", event.getProductListName()); }