Maybe a:

```java
URI actual = mWrapper.expand(request);
URI expected = URI.create("https://api.example.com/users/1/avatar?size=medium");
assertEquals(expected, actual);
```

would be more succinct and clear here?

Or doesn't URI implement equals in that way?