public void testCreatePushStrategyWithTriggers() throws Exception {
//GIVEN
PackageSourceFactory sourceFactory = new PackageSourceFactory();
PackageSourceFactory.instance = sourceFactory;
//Триггер после помещения пакета
final TriggerOptions aftherTriggerOptions = new TriggerOptions();
aftherTriggerOptions.setClassName(RemoveOldVersionTrigger.class.getCanonicalName());
aftherTriggerOptions.getProperties().put("maxPackageCount", "5");
//Триггер до помещения пакета
final TriggerOptions beforeTriggerOptions = new TriggerOptions();
beforeTriggerOptions.setClassName(TestBeforeTrigger.class.getCanonicalName());
beforeTriggerOptions.getProperties().put("testProperty", "15");
//Стратегия фиксации
StorageOptions storageOptions = new StorageOptions();
storageOptions.setStorageName("storage");
storageOptions.getAftherTriggersOptions().add(aftherTriggerOptions);
storageOptions.getBeforeTriggersOptions().add(beforeTriggerOptions);