@Test
public void testToStringOwerwrite() throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException,
        InvocationTargetException {

    Method cacheKeyMethod = cacheKeyMethodStoreImpl.getKeyMethod(YClass.class);
    assertEquals("toString", cacheKeyMethod.getName());
    Object result = cacheKeyMethod.invoke(new YClass());
    assertEquals("Y", result.toString());
    
    cacheKeyMethod = cacheKeyMethodStoreImpl.getKeyMethod(XClass.class);
    assertEquals("toString", cacheKeyMethod.getName());
    
    result = cacheKeyMethod.invoke(new XClass());
    assertEquals("X", result.toString());
}