It should be sufficient (and more better) to pull this out into a

DateTime now = new DateTime();
DateTime past = now.minus(Minutes.something(10)).minus(Milliseconds.ONE);

And then test.