{
FactorGraph grid = RandomGraphs.randomAttractiveGrid (5, 0.5, new Random (2413421));
TRP trp = new TRP (new TRP.IterationTerminator (1));
trp.setRandomSeed (14312341);
trp.computeMarginals (grid);
boolean oneIsDifferent = false;
// check no exceptions thrown when asking for all marginals,
// and check that at least one factors' belief has changed