Implementation that validates tests Instance considered that valid configurations for attributes of the types TEXT, INTEGER and LONGTEXT

You do not need to check instance.getValues().size() > 0

The for also checks it.