### Question:
SimpleMessageProducer implements MessageProducer { public ValidationMessage getMessage(InvalidValue error) { String simpleName = error.getClass().getSimpleName(); String errorName = error.name(); String key = simpleName + "." + errorName; String message; message = key.replaceFirst("[.]", " : ").replaceAll("_", " "); return new SimpleValidationMessage(message); }  ValidationMessage getMessage(InvalidValue error);  }### Answer:
@Test public void testGetMessage() { SimpleMessageProducer messageProducer = new SimpleMessageProducer(); ValidationMessage message = messageProducer.getMessage(DocumentoError.INVALID_CHECK_DIGITS); assertEquals("DocumentoError : INVALID CHECK DIGITS", message.getMessage()); }