    @Test
    public void createCategory() {


        int databaseSizeBeforeCreate = Iterators.size(categoryRepository.findAll().iterator());

        given()
                .contentType(JSON)
                .body(this.category)
                .when().post("/api/categories")
                .then()
                .statusCode(201);

        // Validate the Category in the database
        List<Category> categoryList = categoryRepository.findAll();
        Assertions.assertEquals(categoryList.size(), databaseSizeBeforeCreate + 1);
        Category category = categoryList.get(categoryList.size() - 1);
        Assertions.assertEquals(category.getName(), DEFAULT_NAME);
    }