private static VOServicePaymentConfiguration createServiceConfiguration(
     long prodKey, String paymentId) {
   VOServicePaymentConfiguration conf = new VOServicePaymentConfiguration();
   conf.setEnabledPaymentTypes(Collections.singleton(createPaymentType(paymentId)));
   VOService service = new VOService();
   service.setKey(prodKey);
   conf.setService(service);
   return conf;
 }
  @Test
  public void toCatalogEntry() throws ValidationException {
    // given
    VOService service = new VOService();
    service.setServiceId("sId");
    voCatalogEntry.setService(service);

    // when
    CatalogEntry ce = CatalogEntryAssembler.toCatalogEntry(voCatalogEntry);

    // then
    assertEquals(voCatalogEntry.getKey(), ce.getKey());
    assertEquals(voCatalogEntry.isAnonymousVisible(), ce.isAnonymousVisible());
    assertEquals(voCatalogEntry.isVisibleInCatalog(), ce.isVisibleInCatalog());
    assertNotNull(ce.getMarketplace());
    assertEquals(
        voCatalogEntry.getMarketplace().getMarketplaceId(), ce.getMarketplace().getMarketplaceId());
  }