@Before
  public void setUp() throws Exception {
    final CatalogManager catalogManager = CatalogManager.getInstance();

    final Catalog catalog = catalogManager.createCatalog("PartOfTest");
    srcCatalogVersion = catalogManager.createCatalogVersion(catalog, "ver1", null);
    srcCatalogVersion.setLanguages(Collections.singletonList(getOrCreateLanguage("de")));
    tgtCatalogVersion = catalogManager.createCatalogVersion(catalog, "ver2", null);
    tgtCatalogVersion.setLanguages(Collections.singletonList(getOrCreateLanguage("de")));

    LOG.info("Creating  product");
    final ComposedType composedType = TypeManager.getInstance().getComposedType(Product.class);

    final Product productOne = createProduct("Product-One", composedType);
    final Product productTwo = createProduct("Product-Two", composedType);

    LOG.info("Creating  product reference ");

    catalogManager.createProductReference("foo", productOne, productTwo, Integer.valueOf(1));

    LOG.info("Done catalog creation.");

    final Europe1PriceFactory europe1 = Europe1PriceFactory.getInstance();
    final Currency currency = C2LManager.getInstance().createCurrency("europe1/dr");
    final Unit unit = ProductManager.getInstance().createUnit(null, "europe1/u", "typ");
    final EnumerationValue enumValue =
        EnumerationManager.getInstance()
            .createEnumerationValue(Europe1Constants.TYPES.DISCOUNT_USER_GROUP, "test");

    priceRowSpy =
        Mockito.spy(
            europe1.createPriceRow(
                productTwo, null, null, enumValue, 0, currency, unit, 1, true, null, 0));
  }
  @Before
  public void setUp() {
    catalogManager = CatalogManager.getInstance();

    final Catalog catalog = catalogManager.createCatalog("foo");
    src = catalogManager.createCatalogVersion(catalog, "bar", null);
    src.setLanguages(Arrays.asList(getOrCreateLanguage("de"), getOrCreateLanguage("en")));
    tgt = catalogManager.createCatalogVersion(catalog, "ba2r", null);
    tgt.setLanguages(Arrays.asList(getOrCreateLanguage("de"), getOrCreateLanguage("en")));

    deCtx = jaloSession.createSessionContext();
    deCtx.setLanguage(getOrCreateLanguage("de"));

    enCtx = jaloSession.createSessionContext();
    enCtx.setLanguage(getOrCreateLanguage("en"));

    final ProductManager productManager = ProductManager.getInstance();
    unit = productManager.createUnit("foo", "bar");

    product1 = productManager.createProduct("product1");
    catalogManager.setCatalogVersion(product1, src);
    product1.setName(deCtx, "product1 name de");
    product1.setName(enCtx, "product1 name en");
    product1.setUnit(unit);

    product2 = productManager.createProduct("product2");
    catalogManager.setCatalogVersion(product2, src);
    product2.setName(deCtx, "product2 name de");
    product2.setName(enCtx, "product2 name en");
    product2.setUnit(unit);

    product3 = productManager.createProduct("product3");
    catalogManager.setCatalogVersion(product3, src);
    product3.setName(deCtx, "product3 name de");
    product3.setName(enCtx, "product3 name en");
    product3.setUnit(unit);
  }
 @Before
 public void setUp() {
   product = ProductManager.getInstance().createProduct(EXAMPLE_PRODUCT_1);
 }