### Question:
S3ConditionFactory { private S3ConditionFactory() { } private  S3ConditionFactory(); static Condition newCannedACLCondition(CannedAccessControlList cannedAcl); static final String CANNED_ACL_CONDITION_KEY; static final String LOCATION_CONSTRAINT_CONDITION_KEY; static final String PREFIX_CONDITION_KEY; static final String DELIMITER_CONDITION_KEY; static final String MAX_KEYS_CONDITION_KEY; static final String COPY_SOURCE_CONDITION_KEY; static final String METADATA_DIRECTIVE_CONDITION_KEY; static final String VERSION_ID_CONDITION_KEY; }### Answer:
@Test public void testS3ConditionFactory() { CannedAccessControlList acl = CannedAccessControlList.Private; Condition c = S3ConditionFactory.newCannedACLCondition(acl); assertEquals(c.getType(), StringComparisonType.StringEquals.toString()); assertEquals(c.getConditionKey(), "s3:x-amz-acl"); assertEquals(c.getValues().get(0), acl.toString()); }