Sun has put its TestingComatiblityKit (TCK) for Java under a “Read-Only-License”. This means that you are allowed to look at the source-code but you are not allowed to modify or compile it. For more information, a couple of Sun people’s blogs address the subject here and here.
For a perspective from outside Sun, see here and here.
Read the license here. And retrieve the source code of the TCK here.