As of Java 16, the implementation of Paths.get(), which internally calls Path.of(), now explicitly requires the 'first' path element to be non-null.
This is an implementation change from Java 15, but is consistent with the specification. The package javadoc for java.nio.files states "Unless otherwise noted, passing a null argument to a constructor or method of any class or interface in this package will cause a NullPointerException to be thrown."
This implementation change can be considered and improvement because it will no longer hide the string value "null" appearing in file system paths, which is likely not the desired outcome.
In this case, a unit test was breaking because of an improperly initialized mock object.