How do you test a Java application that uses the current date or time as the basis for a calculation? I’ve seen a couple of ways: 1. Make sure all date/time operations use a service class to get the current date, which is then mocked 2. Adjust the system clock