def METHOD_NAME():
    banana = Fruit()
    basket = Basket(fruits__banana=banana)
    root = Box(items__basket=basket)
    root = root.bind(request=None)
    with pytest.raises(InvalidEndpointPathException) as e:
        find_target(path='/items/baz', root=root)
    assert str(e.value) == (
        "Given path /items/baz not found.\n"
        "    Short alternatives:\n"
        "        ''\n"
        "        basket\n"
        "        banana\n"
        "    Long alternatives:\n"
        "        ''\n"
        "        items/basket\n"
        "        items/basket/fruits/banana"
    )