try {
createSchema(AttributableType.ROLE, SchemaType.NORMAL, schemaTO);
fail("This should not be reacheable");
} catch (SyncopeClientCompositeErrorException scce) {
SyncopeClientException sce = scce.getException(SyncopeClientExceptionType.InvalidRSchema);
assertNotNull(sce.getElements());
assertEquals(1, sce.getElements().size());
assertTrue(sce.getElements().iterator().next()
.contains(EntityViolationType.InvalidSchemaTypeSpecification.name()));
}
}