# campo description for inválido

```java
@Test
public void insertShouldReturn422AndCustomMessageWhenAdminLoggedAndDescriptionInvalid() {
    //colocando propriedade description invalida
    postProductInstance.put("description", "aa");
    JSONObject newProduct = new JSONObject(postProductInstance);

    String productAsString = newProduct.toString();

    given()
            .header("Content-Type", "application/json")
            .header("Authorization", "Bearer " + adminToken)
            .body(productAsString)
            .contentType(ContentType.JSON)
            .accept(ContentType.JSON)
            .when()
            .post("/products")
            .then()
            .statusCode(422)
            .body("errors.message[0]", equalTo("Descrição precisa ter no mínimo 10 caracteres"));
}
```
