ListContainerOptions extends BaseHttpRequestOptions { public ListContainerOptions underPath(String path) { queryParameters.put("path", checkNotNull(path, "path")); return this; }  ListContainerOptions afterMarker(String marker); String getMarker(); ListContainerOptions maxResults(int limit); int getMaxResults(); ListContainerOptions withPrefix(String prefix); String getPrefix(); ListContainerOptions underPath(String path); String getPath(); static final ListContainerOptions NONE; }
@Test public void testPath() { ListContainerOptions options = new ListContainerOptions(); options.underPath("test"); assertEquals(options.buildQueryParameters().get(SwiftConstants.PATH), ImmutableList.of("test")); }
@Test public void testPathStatic() { ListContainerOptions options = underPath("test"); assertEquals(options.buildQueryParameters().get(SwiftConstants.PATH), ImmutableList.of("test")); }
@Test(expectedExceptions = NullPointerException.class) public void testPathNPE() { underPath(null); }