@Test
  public void testUpdateContent() {
    final String ownerId = "owner";
    final String productId = "productId";
    final String contentId = "10";

    Owner owner = mock(Owner.class);
    Product product = mock(Product.class);
    Content content = mock(Content.class);

    when(product.getId()).thenReturn(productId);
    when(product.getOwner()).thenReturn(owner);
    when(content.getId()).thenReturn(contentId);
    when(content.getOwner()).thenReturn(owner);

    when(oc.lookupByKey(eq(ownerId))).thenReturn(owner);
    when(cc.lookupById(eq(owner), eq(contentId))).thenReturn(content);
    when(cc.createOrUpdate(eq(content))).thenReturn(content);
    when(productCurator.getProductsWithContent(eq(owner), eq(Arrays.asList(contentId))))
        .thenReturn(Arrays.asList(product));

    ocr.updateContent(ownerId, contentId, content);

    verify(cc).lookupById(eq(owner), eq(contentId));
    verify(cc).createOrUpdate(eq(content));
    verify(productCurator).getProductsWithContent(eq(owner), eq(Arrays.asList(contentId)));
    verify(poolManager).regenerateCertificatesOf(eq(owner), eq(productId), eq(true));
  }