I am publishing an open-source code project under the MIT-style license. I have the full notice in the
LICENSE file of the source repository.
I want to take a whole file from another open-source project licensed under the Apache 2.0 license. The two licenses are commonly regarded as compatible. If that matters, the code of the file will be part of test harness, not distributed with the binary package compiled from my sources, but rather used at compile time only. But the code should still be published as part of the project, e. g. on GitHub.
How should I reflect the other project copyright? Is retaining a copyright notice at the beginning of the ingested file enough? Or should I also mention "Copyright (c) that_other_project" somewhere else, and where if so?