### Question:
DynamoDbEventHandler extends AbstractEventHandler<DynamoDbEvent, DynamoDbEventResult, List<AwsEventRequest>> { @Override public DynamoDbEventResult handleRequest(DynamoDbEvent input, Context context) { logger.info("RecordSize: {}", () -> input.getRecords().size()); return super.handleRequest(input, context); } DynamoDbEventHandler(ApplicationContext applicationContext);  DynamoDbEventHandler(ApplicationContext applicationContext,
                                int parallelStreamSize, DynamoDbEventName... availableEventNames); @Override DynamoDbEventResult handleRequest(DynamoDbEvent input, Context context); @Override List<AwsEventRequest> readEvent(DynamoDbEvent event);  }### Answer:
@Test public void testDynamodbEventHandlerSuccessfully() throws Exception { InputStream input = this.getClass().getClassLoader().getResourceAsStream(REQUEST_JSON_TEMPLATE); DynamoDbEventResult result = handler.handleRequest(supplyEvent(input), mockContext); assertEquals(1, result.getSuccessItems().size()); assertEquals(0, result.getFailureItems().size()); assertEquals(0, result.getSkippedItems().size()); }
@Test() public void testDynamodbEventHandlerMultiEvent() throws Exception { InputStream input = this.getClass().getClassLoader().getResourceAsStream(DYNAMO_REQUEST_MULTI_JSON_TEMPLATE); DynamoDbEventResult result = handler.handleRequest(supplyEvent(input), mockContext); assertEquals(2, result.getSuccessItems().size()); assertEquals(1, result.getFailureItems().size()); assertEquals(1, result.getSkippedItems().size()); }