### Question:
DefaultKeyGenerator implements KeyGenerator { public Object generate(Object target, Method method, Object... params) { return generateKey(params); }  Object generate(Object target, Method method, Object... params);  }### Answer:
@Test public void generate() { DefaultKeyGenerator defaultKeyGenerator = new DefaultKeyGenerator(); System.out.println(defaultKeyGenerator.generate(null,null,null)); System.out.println(defaultKeyGenerator.generate(null,null,"1")); System.out.println(defaultKeyGenerator.generate(null,null,"1","2")); }