  @Test
  public void getProductRequest() {


    String bookId = UUID.randomUUID().toString();
    Book book = new Book(bookId, "1234567890", "Book Title", "");
    String productId = UUID.randomUUID().toString();
    Product product = new Product(productId, book, 1000L, null);
    when(productRepository.getProduct(productId)).thenReturn(product);

    ProductDto retrievedProduct = resources.client()
        .target(PRODUCT_RESOURCE + "/" + productId)
        .request(APPLICATION_JSON_TYPE)
        .get(ProductDto.class);

    assertThat(retrievedProduct, is(ProductDtoFactory.fromProduct(product)));
  }