422 não tiver categoria associada

@Test
public void insertShouldReturn422AndCustomMessageWhenAdminLoggedAndNoCategories() {
    //colocando propriedade de categorias zerada
    postProductInstance.put("categories", null);
    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("Deve ter pelo menos uma categoria"));
}

Atualizado