UriImmutable restricts property setting, we are doing that by restricting access to __set, which throws exception. Only exception case is possible nothing else, that's why I added `@expectedException \BadMethodCallException` with not assert statement.