@Test
public void getAnExistingProduct(){

    final DbProduct product = new DbProduct();
    product.setName("product1");
    final RepositoryHandler repositoryHandler = GrapesTestUtils.getRepoHandlerMock();
    when(repositoryHandler.getProduct(product.getName())).thenReturn(product);
    final ProductHandler productHandler = new ProductHandler(repositoryHandler);
    final DbProduct gotProduct = productHandler.getProduct(product.getName());
    assertNotNull(gotProduct);
    assertEquals(product, gotProduct);
}