### Question:
CouchDBStore extends DataStoreBase<K, T> { @Override public Result<K, T> execute(Query<K, T> query) throws GoraException { try { query.setFields(getFieldsToQuery(query.getFields())); final ViewQuery viewQuery = new ViewQuery() .allDocs() .includeDocs(true) .startKey(query.getStartKey()) .endKey(query.getEndKey()) .limit(Ints.checkedCast(query.getLimit())); CouchDBResult<K, T> couchDBResult = new CouchDBResult<>(this, query, db.queryView(viewQuery, Map.class)); return couchDBResult; } catch (Exception e) { throw new GoraException(e) ; } }  @Override void initialize(Class<K> keyClass, Class<T> persistentClass, Properties properties); @Override String getSchemaName(); @Override String getSchemaName(final String mappingSchemaName, final Class<?> persistentClass); @Override void createSchema(); @Override void deleteSchema(); @Override boolean schemaExists(); @Override T get(final K key, final String[] fields); @Override boolean exists(final K key); @Override void put(K key, T obj); @Override boolean delete(K key); @Override long deleteByQuery(Query<K, T> query); @Override Query<K, T> newQuery(); @Override Result<K, T> execute(Query<K, T> query); @Override List<PartitionQuery<K, T>> getPartitions(Query<K, T> query); T newInstance(Map<String, Object> result, String[] fields); @Override void flush(); @Override void close(); static final String DEFAULT_MAPPING_FILE; }### Answer:
@Test public void testExecute() throws IOException { WebPageDataCreator.createWebPageData(webPageStore); final Query<String, WebPage> query = webPageStore.newQuery(); int limit = 5; query.setLimit(limit); CouchDBResult<String, WebPage> result = (CouchDBResult<String, WebPage>) webPageStore.execute(query); assertEquals(limit, result.getResultData().size()); limit = 10; query.setLimit(limit); result = (CouchDBResult<String, WebPage>) webPageStore.execute(query); assertEquals(limit, result.getResultData().size()); }