### Question:
LUHNMaskingConverter extends ClassicConverter { @Override public String convert(ILoggingEvent iLoggingEvent) { return mask(iLoggingEvent.getFormattedMessage()); }  @Override String convert(ILoggingEvent iLoggingEvent);  }### Answer:
@Test public void should_satisfy_convert_with_masked_string() { ILoggingEvent iLoggingEvent = new LoggingEvent(); ((LoggingEvent) iLoggingEvent).setMessage(getXML()); String formatted = new LUHNMaskingConverter().convert(iLoggingEvent); assertThat(formatted).isNotNull().isXmlEqualTo(expectedXml()); }