ExecutionMessageConverter { public boolean containsSensitiveData(Payload payload) { return isSensitive(payload); }  T extractExecution(Payload payload); Payload createPayload(Execution execution); Payload createPayload(Execution execution, boolean setContainsSensitiveData); boolean containsSensitiveData(Payload payload);  }
@Test public void testPayloadForSensitiveData() { Payload p = new Payload(); p.setData(new byte[]{0, 1, 2}); assertFalse(executionMessageConverter.containsSensitiveData(p)); p = new Payload(); p.setData(new byte[]{1, 0, 0}); assertTrue(executionMessageConverter.containsSensitiveData(p)); }