@Test
public void getAProduct(){

    final DbProduct product = new DbProduct();
    product.setName("product1");
    when(repositoryHandler.getProduct(product.getName())).thenReturn(product);
    WebResource resource = client().resource("/" + ServerAPI.PRODUCT_RESOURCE + "/" + product.getName());
    ClientResponse response = resource.accept(MediaType.TEXT_HTML).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
}