### Question:
SanitizingWebProcessor implements Processor { @Override public void processBeforeReport(Transaction transaction) { sanitizeContext(transaction.getContext()); } SanitizingWebProcessor(ConfigurationRegistry configurationRegistry); @Override void processBeforeReport(Transaction transaction); @Override void processBeforeReport(ErrorCapture error);  }### Answer:
@Test void processTransactions() { Transaction transaction = new Transaction(MockTracer.create()); fillContext(transaction.getContext()); processor.processBeforeReport(transaction); assertContainsNoSensitiveInformation(transaction.getContext()); }
@Test void processErrors() { final ErrorCapture errorCapture = new ErrorCapture(MockTracer.create()); fillContext(errorCapture.getContext()); processor.processBeforeReport(errorCapture); assertContainsNoSensitiveInformation(errorCapture.getContext()); }