@Test
public void testAppendFilename() {

  TestContext context = new TestContext();
  context.setAwsRequestId("req_id");
  S3InternalEvent ievent =
      new S3InternalEvent("foo", new LambdaContext(context), 0, "file", "bucket", "v1");
  ievent.setEventObj(null);
  Map<String, String> expected = new HashMap<String, String>(1);
  expected.put(S3InternalEvent.FILENAME_PARTITION, DigestUtils.sha1Hex("file"));
  assertEquals(expected, ievent.getPartitions());
}