    @Test
    public void testCheckNoFieldsOfTypeCategoricalWithInvalidSchema() {

        final DatasetSchema schemaWithoutCat =  TestDatasetSchemaBuilder.builder()
                .withCategoricalFields(3)
                .withNumericalFields(3)
                .withStringFields(3)
                .build();

        assertThat(ValidationUtils.checkNoFieldsOfType(schemaWithoutCat, CategoricalValueSchema.class))
                .as("Validation of a schema that has a forbidden field type.")
                .isNotEmpty();
    }