Turn parentPath() into a static method.
Add current tests and Mockito dependency.