def METHOD_NAME(self) -> None:
    expected = Dataset(coords={"foo": ("x", [0, 1, 2])})
    coords = Coordinates(coords=expected.coords)
    assert_identical(coords.to_dataset(), expected)
    # test variables copied
    assert coords.variables["foo"] is not expected.variables["foo"]
    # test indexes are extracted
    expected = Dataset(coords={"x": [0, 1, 2]})
    coords = Coordinates(coords=expected.coords)
    assert_identical(coords.to_dataset(), expected)
    assert expected.xindexes == coords.xindexes
    # coords + indexes not supported
    with pytest.raises(
        ValueError, match="passing both.*Coordinates.*indexes.*not allowed"
    ):
        coords = Coordinates(
            coords=expected.coords, indexes={"x": PandasIndex([0, 1, 2], "x")}
        )