### Question:
ServiceDescriptorValidatorImpl extends
    DescriptorValidatorImpl<ServiceDescriptor> implements
    DescriptorValidator<ServiceDescriptor> { @VisibleForTesting public Set<ConstraintViolation<ServiceDescriptor>> getViolations( ServiceDescriptor descriptor) { Set<ConstraintViolation<ServiceDescriptor>> violations = validator.validate(descriptor); if (enforceDependencyCheck) { Set<ConstraintViolation<ServiceDescriptor>> dependencyViolations = validator.validate( descriptor, ServiceDependencyValidationGroup.class); for (ConstraintViolation<ServiceDescriptor> violation : dependencyViolations) { String message = violation.getMessage(); String[] propertyPathSections = violation.getPropertyPath().toString().split("\\."); dependencyViolationStringSet.add( String.format("%s %s", propertyPathSections[propertyPathSections.length - 1], message)); } } if (!violations.isEmpty()) { return violations; } return refValidator.validate(descriptor); } ServiceDescriptorValidatorImpl(
      Validator validator,
      ReferenceValidator refValidator,
      boolean enforceDependencyCheck); @VisibleForTesting Set<ConstraintViolation<ServiceDescriptor>> getViolations(
      ServiceDescriptor descriptor); @Override Set<String> validate(ServiceDescriptor descriptor);  }### Answer:
@Test public void testFullSdl() { assertEquals(ImmutableSet.of(), validator.getViolations(SdlTestUtils.getParserSdl("service_full.sdl"))); }
@Test public void testKmsSdl() { assertEquals(ImmutableSet.of(), validator.getViolations(SdlTestUtils.getParserSdl("service_kms.sdl"))); }