### Question:
JestActionIntrospector implements BatchItemIntrospector<AbstractDocumentTargetedAction<DocumentResult>> { @Override public String getPayload(AbstractDocumentTargetedAction<DocumentResult> introspected) { return (String) introspected.payload; }  @Override String getPayload(AbstractDocumentTargetedAction<DocumentResult> introspected);  }### Answer:
@Test public void intropectorCanAccessActionPayload() { BatchItemIntrospector<AbstractDocumentTargetedAction<DocumentResult>> introspector = new JestActionIntrospector(); String testPayload = "testPayload"; AbstractDocumentTargetedAction<DocumentResult> action = new Index.Builder(testPayload).build(); String payload = (String) introspector.getPayload(action); Assert.assertEquals(testPayload, payload); }