@Test
    void testResolveParentRelativeVolumePath() {
        String relativePath = DOT + RELATIVE_PATH; // '../rel'
        String volumeString = format(BIND_STRING_FMT, relativePath, CONTAINER_PATH);

        // '../rel:/path/to/container/dir to '/absolute/rel:/path/to/container/dir'
        String relativizedVolumeString = resolveRelativeVolumeBinding(ABS_BASEDIR, volumeString);

        String expectedBindingString = format(BIND_STRING_FMT,
                new File(ABS_BASEDIR.getParent(), stripLeadingPeriod(RELATIVE_PATH)), CONTAINER_PATH);
        Assertions.assertEquals(expectedBindingString, relativizedVolumeString);
    }
Insures that a relative path referencing the parent directory are properly resolved against a base directory.
src/test/java/io/fabric8/maven/docker/util/VolumeBindingUtilTest.java