Simulations of extragalactic magnetic fields and of their observables