when(proxifier.getRealObject(entity)).thenReturn(entity);
when(proxifier.getInterceptor(entity)).thenReturn(interceptor);
when(interceptor.getDirtyMap()).thenReturn(dirtyMap);
when(meta.getAllCounterMetas()).thenReturn(allCounterMetas);
PropertyMeta pm = PropertyMetaTestBuilder.completeBean(Void.class, UserBean.class).propertyName("user").type(SIMPLE)
.accessors().build();
DirtyChecker dirtyChecker = new SimpleDirtyChecker(pm);
dirtyMap.put(pm.getGetter(), dirtyChecker);
when(context.isClusteredCounter()).thenReturn(false);
entityUpdater.update(context, entity);
verify(context).setEntity(entity);