QueryExecutionContext extends ExecutionContext { @Override public Object cacheGet(Object key) { return cacheGet(key, null); } QueryExecutionContext(Object[] bindArguments, InternalCache cache);  QueryExecutionContext(Object[] bindArguments, InternalCache cache,
      boolean cqQueryContext);  QueryExecutionContext(Object[] bindArguments, InternalCache cache, Query query); @Override Object cacheGet(Object key); @Override Object cacheGet(Object key, Object defaultValue); @Override void pushExecCache(int scopeNum); @Override void popExecCache(); @Override void reset(); @Override boolean isCqQueryContext(); @Override Query getQuery(); @Override void setBucketList(List list); @Override List getBucketList(); @Override PdxString getSavedPdxString(int index); boolean isIndexUsed(); boolean isHinted(String indexName); int getHintSize(String indexName);  }
@Test public void testNullReturnedFromCacheGetWhenNoValueWasPut() { Object key = new Object(); assertThat(context.cacheGet(key)).isNull(); }
@Test public void testDefaultReturnedFromCacheGetWhenNoValueWasPut() { Object key = new Object(); Object value = new Object(); assertThat(context.cacheGet(key, value)).isEqualTo(value); }