### Question:
S3Object { public boolean hasDateTimeKey() { return dateTime != null; } S3Object(String bucket, String key); String bucket(); String key(); String keyPart(int index); int keyLength(); boolean hasDateTimeKey();  }### Answer:
@Test public void shouldIndicateWhetherKeyContainsDateTimePart() { String key = "/prefix/a/b/some-file.txt"; S3Object s3Object = new S3Object("my-bucket", key); assertFalse(s3Object.hasDateTimeKey()); }