### Question:
OmMultipartUpload { public static OmMultipartUpload from(String key) { String[] split = key.split(OM_KEY_PREFIX); if (split.length < 5) { throw new IllegalArgumentException("Key " + key + " doesn't have enough segments to be a valid multipart upload key"); } String uploadId = split[split.length - 1]; String volume = split[1]; String bucket = split[2]; return new OmMultipartUpload(volume, bucket, key.substring(volume.length() + bucket.length() + 3, key.length() - uploadId.length() - 1), uploadId); } OmMultipartUpload(String volumeName, String bucketName,
      String keyName, String uploadId);  OmMultipartUpload(String volumeName, String bucketName,
      String keyName, String uploadId, Instant creationDate);  OmMultipartUpload(String volumeName, String bucketName,
      String keyName, String uploadId, Instant creationTime,
      ReplicationType replicationType,
      ReplicationFactor replicationFactor); static OmMultipartUpload from(String key); String getDbKey(); static String getDbKey(String volume, String bucket, String key,
      String uploadId); static String getDbKey(String volume, String bucket, String key); String getVolumeName(); String getBucketName(); String getKeyName(); String getUploadId(); Instant getCreationTime(); void setCreationTime(Instant creationTime); ReplicationType getReplicationType(); void setReplicationType(
      ReplicationType replicationType); ReplicationFactor getReplicationFactor(); void setReplicationFactor(
      ReplicationFactor replicationFactor);  }### Answer:
@Test public void from() { String key1 = OmMultipartUpload.getDbKey("vol1", "bucket1", "dir1/key1", "uploadId"); OmMultipartUpload info = OmMultipartUpload.from(key1); Assert.assertEquals("vol1", info.getVolumeName()); Assert.assertEquals("bucket1", info.getBucketName()); Assert.assertEquals("dir1/key1", info.getKeyName()); Assert.assertEquals("uploadId", info.getUploadId()); }