    @Test
    public void shouldReturnTheProductsOfACategory() {

        long categoryId = 1;
        List<Product> products = TestDataFactory.getProductList(5, categoryId);

        when(productService.findProductsByCategoryId(categoryId)).thenReturn(products);
        assertThat(productController.getProducts(categoryId)).isEqualTo(products);
    }