@Test
public void testRecord() throws IOException {

  String input =
      "{" +
      "  \"Records\":[" +
      "    {" +
      "      \"eventID\":\"1\"," +
      "      \"eventName\":\"INSERT\"," +
      "      \"eventVersion\":\"1.0\"," +
      "      \"eventSource\":\"aws:dynamodb\"," +
      "      \"awsRegion\":\"us-east-1\"," +
      "      \"dynamodb\":{" +
      "      \"ApproximateCreationDateTime\": 1479499740," +
      "      \"SequenceNumber\":\"111\"" +
      "      }," +
      "      \"eventSourceARN\":\"stream-ARN\"" +
      "    }" +
      "  ]" +
      "}";
  DynamodbEvent event = DynamodbEventDeserializer.deserialize(input);
  String result = new DynamodbEventSerializer().serialize(event.getRecords().get(0));
  String expected = "{\"eventSourceARN\":\"stream-ARN\",\"eventID\":\"1\",\"eventName\":\"INSERT\",\"eventVersion\":\"1.0\",\"eventSource\":\"aws:dynamodb\",\"awsRegion\":\"us-east-1\",\"dynamodb\":{\"approximateCreationDateTime\":1479499740,\"sequenceNumber\":\"111\"}}";
  assertEquals(expected, result);
}