### Question:
AwsAssetDatabaseImpl implements AwsAssetDatabase { @Override public AwsAssetMapping storeMapping(StoragePath path, String objectKey, String objectVersion) throws AwsAssetDatabaseException { AwsAssetMappingDto dto = AwsAssetMappingDto.storeMapping(emf.createEntityManager(), path, objectKey, objectVersion); if (dto != null) return dto.toAWSArchiveMapping(); return null; }  @Activate void activate(ComponentContext cc); @Deactivate void deactivate(ComponentContext cc); @Reference(name = "entityManagerFactory", target = "(osgi.unit.name=org.opencastproject.assetmanager.aws.persistence)") void setEntityManagerFactory(EntityManagerFactory emf); @Override AwsAssetMapping storeMapping(StoragePath path, String objectKey, String objectVersion); @Override void deleteMapping(StoragePath path); @Override AwsAssetMapping findMapping(StoragePath path); @Override List<AwsAssetMapping> findMappingsByKey(String objectKey); @Override List<AwsAssetMapping> findMappingsByMediaPackageAndVersion(StoragePath path); @Override List<AwsAssetMapping> findAllByMediaPackage(String mpId); static final String PERSISTENCE_UNIT; }### Answer:
@Test public void testStoreMapping() throws Exception { StoragePath path = new StoragePath(ORG, MP_ID, new VersionImpl(1L), ASSET1_ID); database.storeMapping(path, "archive_path/" + ASSET1_ID, AWS_VERSION_1); AwsAssetMapping mapping = database.findMapping(path); Assert.assertNotNull(mapping); Assert.assertEquals("archive_path/" + ASSET1_ID, mapping.getObjectKey()); Assert.assertEquals(AWS_VERSION_1, mapping.getObjectVersion()); Assert.assertNull(mapping.getDeletionDate()); }