Person expectedPerson = persons[0];
assertEquals(expectedPerson, val);
}
protected void loadCacheEntries(Cache<String, Person> cache) {
Person person1 = new Person();
person1.setName("NavinSurtani");
person1.setBlurb("Likes playing WoW");
person1.setAge(45);
Person person2 = new Person();
person2.setName("BigGoat");
person2.setBlurb("Eats grass");
person2.setAge(30);
Person person3 = new Person();
person3.setName("MiniGoat");
person3.setBlurb("Eats cheese");
person3.setAge(35);
Person person4 = new Person();
person4.setName("MightyGoat");
person4.setBlurb("Also eats grass");
person4.setAge(66);
persons = new Person[]{person1, person2, person3, person4};
// Put the 3 created objects in the cache
cache.put(person1.getName(), person1);
cache.put(person2.getName(), person2);
cache.put(person3.getName(), person3);
cache.put(person4.getName(), person4);
}