@Test(expected = InvalidAttributeEntryException.class) public void test_should_throw_exception_when_key_size_is_greater_than_500_chars_in_attribute_value() { final AttributeValuesValidator validator = new AttributeValuesValidator(); final String key = StringUtils.repeat("k", 501); final List<AttributeEntry> attributeEntries = Collections.singletonList(new AttributeEntry(key, "bar")); final ServiceRequest serviceRequest = createServiceRequest(attributeEntries); validator.validate(serviceRequest); }
@Override public void validate(ServiceRequest serviceRequest) { serviceRequest.validateAttributeEntries(); }
AttributeValuesValidator implements ServiceRequestValidator { @Override public void validate(ServiceRequest serviceRequest) { serviceRequest.validateAttributeEntries(); } }
AttributeValuesValidator implements ServiceRequestValidator { @Override public void validate(ServiceRequest serviceRequest) { serviceRequest.validateAttributeEntries(); }  }
AttributeValuesValidator implements ServiceRequestValidator { @Override public void validate(ServiceRequest serviceRequest) { serviceRequest.validateAttributeEntries(); }  @Override boolean canValidate(ServiceRequest serviceRequest); @Override void validate(ServiceRequest serviceRequest); }
AttributeValuesValidator implements ServiceRequestValidator { @Override public void validate(ServiceRequest serviceRequest) { serviceRequest.validateAttributeEntries(); }  @Override boolean canValidate(ServiceRequest serviceRequest); @Override void validate(ServiceRequest serviceRequest);  }