[Java] Inject a Clock via #now(Clock) to avoid implicit dependency on current time

There is a similar rule suggestion for .NET: