### Question:
ESPushTask extends BaseTask { protected OutgoingMessageEnvelope getSimpleOutMsg(IncomingMessageEnvelope envelope, ESPushTaskConfig.ESIndexSpec spec) { return getSimpleOutMsg(envelope, spec, Optional.empty()); }  static void main(String [] args);  }### Answer:
@Test public void testDefaultDocIdWithKeyConfig() throws Exception { ESPushTaskConfig.ESIndexSpec esConfig = getEsIndexSpec("key_doc_id", true); ESPushTask task = getEsPushTask(); long tsNowMs = 1453952662L; OutgoingMessageEnvelope out = task.getSimpleOutMsg(getInMsg(""), esConfig, Optional.of(tsNowMs)); HTTPBulkLoader.ActionRequest req = (HTTPBulkLoader.ActionRequest) out.getMessage(); assertEquals("fake-0-1234", req.key.getId().toString()); assertEquals(Action.INDEX, req.key.getAction()); assertEquals(tsNowMs, req.key.getPartitionTsUnixMs().longValue()); assertNull("Do not default event time", req.key.getEventTsUnixMs()); assertNull("Version not set", req.key.getVersion()); assertNull("Version type not set", req.key.getVersionType()); }