FactoryDataSynchronizer.synchroniseFactories(oldFactories, dataStorage);
assertEquals(2, dataStorage.getFactories().size());
List<Factory<?>> newFactories = new ArrayList<>();
newFactories.add(new PoissonDistributionFactory());
newFactories.add(new BinomialDistributionFactory());
for (int i = 0; i < TRIALS; i++) {
FactoryDataSynchronizer.synchroniseFactories(newFactories, dataStorage);
assertEquals(2, dataStorage.getFactories().size());
assertTrue(dataStorage.getFactories().contains(