### Question:
ViewQuery { public String buildQuery() { if (cachedQuery != null) { return cachedQuery; } URI query = buildQueryURI(); cachedQuery = query.toString(); return cachedQuery; } ViewQuery();  ViewQuery(ObjectMapper om); static void setDefaultObjectMapperFactory(ObjectMapperFactory objectMapperFactory); String getDbPath(); String getDesignDocId(); String getViewName(); String getStartDocId(); String getEndDocId(); int getLimit(); boolean isStaleOk(); boolean isDescending(); int getSkip(); boolean isGroup(); int getGroupLevel(); boolean isReduce(); boolean isIncludeDocs(); boolean isInclusiveEnd(); boolean isUpdateSeq(); ViewQuery dbPath(String s); ViewQuery designDocId(String s); ViewQuery allDocs(); ViewQuery viewName(String s); ViewQuery listName(String s); ViewQuery cacheOk(boolean b); boolean isCacheOk(); ViewQuery key(String s); ViewQuery rawKey(String s); ViewQuery key(int i); ViewQuery key(long l); ViewQuery key(float f); ViewQuery key(double d); ViewQuery key(boolean b); ViewQuery key(Object o); ViewQuery keys(Collection<?> keyList); Keys getKeys(); Collection<?> getKeysValues(); ViewQuery startKey(String s); ViewQuery rawStartKey(String s); ViewQuery startKey(int i); ViewQuery startKey(long l); ViewQuery startKey(float f); ViewQuery startKey(double d); ViewQuery startKey(boolean b); ViewQuery startKey(Object o); ViewQuery startDocId(String s); ViewQuery endKey(String s); ViewQuery rawEndKey(String s); ViewQuery endKey(int i); ViewQuery endKey(long l); ViewQuery endKey(float f); ViewQuery endKey(double d); ViewQuery endKey(boolean b); ViewQuery endKey(Object o); ViewQuery endDocId(String s); ViewQuery limit(int i); ViewQuery staleOk(boolean b); ViewQuery staleOkUpdateAfter(); ViewQuery descending(boolean b); ViewQuery skip(int i); ViewQuery group(boolean b); ViewQuery groupLevel(int i); ViewQuery reduce(boolean b); ViewQuery includeDocs(boolean b); ViewQuery inclusiveEnd(boolean b); ViewQuery updateSeq(boolean b); ViewQuery queryParam(String name, String value); void reset(); Object getKey(); boolean hasMultipleKeys(); String getKeysAsJson(); Object getStartKey(); Object getEndKey(); String buildQuery(); URI buildQueryURI(); @edu.umd.cs.findbugs.annotations.SuppressWarnings({"SA_FIELD_SELF_ASSIGNMENT", "CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE"}) ViewQuery clone(); @Override int hashCode(); @Override boolean equals(Object obj); void setIgnoreNotFound(boolean ignoreNotFound); boolean isIgnoreNotFound(); @Override String toString();  }### Answer:
@Test public void default_to_no_parameters() { assertEquals("/somedb/_design/doc/_view/viewname", query.buildQuery()); }