Shortcuts for verifying "is up to date" logic?

In the midst of writing my first Gradle plugin, I’m realizing how important it will be to have robust integration tests that verify my logic for determining whether a task is “up to date”. These are not “unit tests” that just verify my business logic. It’s easy enough to run a test build using my plugin and verify it produces correct results, but I need to automate tests of “small integrations” like these up to date checks.

Are there shortcuts for writing these “up to date” tests, so that I can set up some data and then ask the task whether it’s up to date?

I could still use some help here. I can’t really be certain my @Input getters are doing what I need unless I can test them in an automated fashion.