Specification of the
method is not clear. It does not specify the path to be processed.
We can not write adequate tests for this method according to the existing
documentation, because parameter path is described as
"an array of MenuElement objects specifying the selected path". It does
not specify the element hierarchy to be proceeded. E.g. it is unclear with
what element path hierarhy should start and should it be either absolute,
So, the existing specification of the method setSelectedPath()
does not contradict with testcases, described as "incorrect" in bug report
#4842133. From point of view of the current API documentation, these
testcases cannot be treated as "invalid". Thus, we got NPE as a result
of writing tests by unclear specification.