@Test
public void testValidationException() {

    ValidationException parent = new ValidationException("Key 1");
    ValidationException child = new ValidationException("Key 2");
    parent.addChildException(child);
    ValidationExceptionMessageExtractor extractor = new ValidationExceptionMessageExtractor();
    extractor.extract(context, parent);
    verify(context).addMessage(any(MessageResolver.class));
}