Don't need this assertion? We will blow up if this turns out to be null in any case, but we're really only interested in the name here? E.g.
```
ObjectInfo info = parser.apply(stream).iterator().next();
assertEquals(objectInfo.getName(), contentName);
```
?