throws Exception
{
// get some initial proxied content
retrieveItem();
StorageFileItem item = (StorageFileItem) getRepository().retrieveItem(
new ResourceStoreRequest("/activemq/activemq-core/1.2/activemq-core-1.2.jar", true));
ResourceStoreRequest to = new ResourceStoreRequest(
"/activemq/activemq-core/1.2/activemq-core-1.2.jar-copy",
true);
getRepository().storeItem(to, item.getInputStream(), null);
// and repeat all this
item = (StorageFileItem) getRepository().retrieveItem(
new ResourceStoreRequest("/activemq/activemq-core/1.2/activemq-core-1.2.jar", true));
to = new ResourceStoreRequest("/activemq/activemq-core/1.2/activemq-core-1.2.jar-copy", true);
getRepository().storeItem(to, item.getInputStream(), null);
StorageFileItem dest = (StorageFileItem) getRepository().retrieveItem(
new ResourceStoreRequest("/activemq/activemq-core/1.2/activemq-core-1.2.jar-copy", true));
checkForFileAndMatchContents(dest, getRemoteFile(getRepositoryRegistry().getRepository(
"repo1"), "/activemq/activemq-core/1.2/activemq-core-1.2.jar"));