@Test public void testNoOptionsQueryString() { HttpRequestOptions options = new ListContainerOptions(); assertEquals(options.buildQueryParameters().size(), 0); }
public String getFirstQueryOrNull(String string, @Nullable HttpRequestOptions options) { if (options == null) return null; Collection<String> values = options.buildQueryParameters().get(string); return (values != null && values.size() >= 1) ? values.iterator().next() : null; }