{
final long activityId = 98766L;
final long scopeId = 100;
final long actorscopeId = 4;
ActivityDTO activity = new ActivityDTO();
activity.setShowInStream(false);
StreamEntityDTO destinationStream = new StreamEntityDTO();
destinationStream.setType(EntityType.RESOURCE);
destinationStream.setUniqueIdentifier("resource1");
StreamEntityDTO actorStream = new StreamEntityDTO();
actorStream.setType(EntityType.PERSON);
actorStream.setUniqueIdentifier("mrburns");
activity.setDestinationStream(destinationStream);
activity.setActor(actorStream);
activity.setId(activityId);
final String cacheKey = CacheKeys.ENTITY_STREAM_BY_SCOPE_ID + scopeId;
final String actorCacheKey = CacheKeys.ENTITY_STREAM_BY_SCOPE_ID + actorscopeId;
assertEquals(null, getCache().get(cacheKey));