You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: cache_test.go
    path of file: ./repos/kala/job
    
    the code of the file until where you have to start completion: package job

import (
	"testing"
	"time"

	"github.com/stretchr/testify/assert"
)

// This file contains tests for specific JobCaches.

func TestCacheStart(t *testing.T) {
	cache := NewMockCache()
	cache.Start(time.Hour, time.Hour)
}

func TestCacheRetainShouldRemoveOldJobStats(t *testing.T) {
	cache := NewMockCache()
	mockDb := &MockDBGetAll{}
	cache.jobDB = mockDb

	pastDate := tim
    
func TestCacheRetainShouldRemoveOldJobStats(t *testing.T) {
	cache := NewMockCache()
	mockDb := &MockDBGetAll{}
	cache.jobDB = mockDb

	pastDate := time.Date(2016, time.April, 12, 20, 0, 0, 0, time.UTC)
	j := GetMockRecurringJobWithSchedule(pastDate, "PT1S")
	j.Stats = GetMockJobStats(pastDate, 5)
	j.Id = "0"

	jobs := make([]*Job, 0)
	jobs = append(jobs, j)
	mockDb.response = jobs

	cache.Start(0, 1*time.Minute) // Retain 1 minute
	j.lock.RLock()
	assert.Equal(t, 5, len(j.Stats))
	j.lock.RUnlock()

	time.Sleep(time.Second * 2)
	cache.Retain()

	j.lock.RLock()
	assert.Equal(t, 1, len(j.Stats)) // New job stats should not be cleaned up
	j.lock.RUnlock()
}