Write JUnit test for Particle.integrate()