> +
> +      List<Object> args = new ArrayList<Object>();
> +      args.add("container-name");
> +      args.add(new ListContainerOptions[0]);
> +      GeneratedHttpRequest.Builder builder = new 
> GeneratedHttpRequest.Builder();
> +      builder.method("method")
> +             .endpoint("http://test.org/test";)
> +             
> .invocation(Invocation.create(Invokable.from(Object.class.getMethod("toString",
>  null)), args))
> +             .caller(null);
> +
> +      GeneratedHttpRequest request = builder.build();
> +
> +      parser.setContext(request);
> +
> +      PageSet<ObjectInfo> objectSet = parser.apply(stream);
> +      assertNotNull(objectSet);

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);
```
?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/388/files#r13251514

Reply via email to