*/
public class DozerCacheTest extends AbstractDozerTest {
@Test
public void testPutGetFromCache() throws Exception {
Cache cache = new DozerCache(getRandomString(), 50);
int numCacheEntriesToAdd = 45;
for (int i = 0; i < numCacheEntriesToAdd; i++) {
Object key = String.valueOf(i);
assertNull("cache entry should not already exist", cache.get(key));
cache.put(key, "testvalue" + i);
String value = (String) cache.get(key);
assertEquals("cache entries should be equal", value, "testvalue" + i);
}
assertEquals("invlid cache size", numCacheEntriesToAdd, cache.getSize());
}