@Test
public void testMandatoryAnswerNotFoundException() {

    MandatoryAnswerNotFoundException e = new MandatoryAnswerNotFoundException("Title");
    ValidationException parent = new ValidationException("Key");
    parent.addChildException(e);
    ValidationExceptionMessageExtractor extractor = new ValidationExceptionMessageExtractor();
    extractor.extract(context, parent);
    verify(context).addMessage(any(MessageResolver.class));
}