@Test
public void testPutNull() {

  Path path = new Path("/path");
  DirListingMetadata meta = new DirListingMetadata(path, null, false);
  exception.expect(NullPointerException.class);
  exception.expectMessage(notNullValue(String.class));
  meta.put(null);
}