Are ASF projects allowed to distribute test source code that will not compile without a 3rd party dependency that has a prohibited license?
For example, Java test code that includes lines of the form:
where the definition of com.example.Myclass is included in a 3rd party dependency that has a prohibited license.
While most products are unlikely to include compiled test source code with convenience binaries (though some projects do, including Apache Lucene's "Lucene Core" and Solr products), the ASF distributes source, so non-inclusion in binary distributions should not affect the answer here.
This question is not directly addressed anywhere that I can find.