But, as far as I know, there is no testImplementation nor testRuntimeOnly configuration when using the Java plugin. These are not mentioned in this very same guide, anyway. As far as I know, these configurations are introduced by the Java Library plugin, not by the Java plugin.
Both these configurations exist, only the api configuration is specific to the java-library plugin. We will improve the rest of the Java plugin user guide soon.
The Java library plugin documentation should be fixed too, then. For example, this section tells that white configurations are inherited from the java plugin, and only compileOnly and testCompileOnly are in white.
It also says:
The plugin exposes two configurations that can be used to declare dependencies: api and implementation
although implementation apparently comes from the Java plugin.