@Test
    void testResolveUserHomeVolumePath() {
        String volumeString = format(BIND_STRING_FMT, USER_HOME, CONTAINER_PATH);

        // '~user:/path/to/container/dir' to '/home/user:/path/to/container/dir'
        File ignored = new File("ignored");
        Assertions.assertThrows(IllegalArgumentException.class, ()->resolveRelativeVolumeBinding(ignored, volumeString));
    }
Resolving arbitrary user home paths, e.g. represented as {@code ~user}, is not supported.
src/test/java/io/fabric8/maven/docker/util/VolumeBindingUtilTest.java