* Проверка создания группы хранилищ
*/
@Test
public void testCreateGroupPackageSource() {
//GIVEN
Options options = new Options();
StorageOptions innerStorage = new StorageOptions();
innerStorage.setClassName(ClassicPackageSource.class.getCanonicalName());
innerStorage.setStorageName("innerStorage");
innerStorage.setIndexed(false);
innerStorage.setPublic(false);
innerStorage.getProperties().put("folderName", "${user.home}/Packages/");
options.getStorageOptionsList().add(innerStorage);
StorageOptions outerStorage = new StorageOptions();
outerStorage.setClassName(PackageSourceGroup.class.getCanonicalName());
outerStorage.setStorageName("outerStorage");
outerStorage.setIndexed(false);
outerStorage.setPublic(true);
outerStorage.getProperties().put("innerSourceNames", "innerStorage");
options.getStorageOptionsList().add(outerStorage);
PackageSourceFactory sourceFactory = new PackageSourceFactory();
PackageSourceFactory.instance = sourceFactory;
//WHEN
sourceFactory.createPackageSources(options);