DefaultDeploymentRepositoryFactory f = new DefaultDeploymentRepositoryFactory();
f.setUploadURIs(uris);
List<String> sourceNames = Arrays.asList(uri1.toURI().toString(), upload.toURI().toString());
ImmutableProfileSourceMetaData source = new ImmutableProfileSourceMetaData(sourceNames);
// See if the upload directory is set correctly
BasicDeploymentRepository repository = (BasicDeploymentRepository) f.createDeploymentRepository(defaultKey, source);
assertEquals(upload.toURI(), repository.getUploadUri());