protected function checkMaximum($entity, $schema, $entityName)
    {
        if (isset($schema->maximum)) {
            if ($entity > $schema->maximum) {
                throw new ValidationException(sprintf('Invalid value for [%s], maximum is [%s]', $entityName, $schema->maximum));
            }
        }

        return $this;
    }