Writing Contract Tests in Java differently

I don't know either. I think it works well for the specific example here, but perhaps not for publishing contract tests for interfaces one wants others to implement.