DefaultProxyResolver implements DozerProxyResolver { @Override public Class<?> getRealClass(Class<?> clazz) { if (isProxy(clazz)) { Class<?> superclass = clazz.getSuperclass(); if (DozerConstants.BASE_CLASS.equals(superclass.getName())) { return clazz; } return superclass; } return clazz; }  @Override boolean isProxy(Class<?> clazz); @Override T unenhanceObject(T object); @Override Class<?> getRealClass(Class<?> clazz);  }
@Test public void testGetRealClass() { Object proxy = ProxyDataObjectInstantiator.INSTANCE.newInstance(Calendar.class); assertFalse(proxy.getClass().equals(Calendar.class)); Class<?> realClass = resolver.getRealClass(proxy.getClass()); assertTrue(realClass.equals(Calendar.class)); }