mapper.selectBlog(1);
assertEquals(1, mapperProxyFactory.getMethodCache().size());
assertSame(cachedSelectBlog, mapperProxyFactory.getMethodCache().get(selectBlog));
// Call another mapper method and verify that it shows up in the cache as well:
session.clearCache();
mapper.selectBlogByIdUsingConstructor(1);
assertEquals(2, mapperProxyFactory.getMethodCache().size());
assertSame(cachedSelectBlog, mapperProxyFactory.getMethodCache().get(selectBlog));
assertTrue(mapperProxyFactory.getMethodCache().containsKey(selectBlogByIdUsingConstructor));