### Question:
CartItemInfo implements Serializable { public BigDecimal getTotalSum() { BigDecimal sum = BigDecimal.ZERO; sum = sum.add(productInfo.getPrice()); return sum; } private  CartItemInfo();  CartItemInfo(ProductInfo productInfo); String getUuid(); ProductInfo getProduct(); @Override boolean equals(Object o); @Override int hashCode(); BigDecimal getTotalSum();  }### Answer:
@Test public void testGetTotalSum() { assertEquals(BigDecimal.valueOf(2.5), cartItemInfo.getTotalSum()); }