def METHOD_NAME(domain, input_dim: int):
    """Check that exception is raised when normalization is not possible."""
    with pytest.raises(ValueError):
        LebesgueMeasure(domain=domain, input_dim=input_dim, normalized=True)