}
@Test
public void should_apply_right_interceptor_on_right_event() throws Exception {
CompleteBean bean = CompleteBeanTestBuilder.builder().id(12L).buid();
EntityMeta entityMeta = new EntityMeta();
PropertyMeta idMeta = PropertyMetaTestBuilder.completeBean(Void.class, Long.class).propertyName("id")
.type(PropertyType.EMBEDDED_ID).accessors().build();
// idMeta.setInvoker(new ReflectionInvoker());
entityMeta.setIdMeta(idMeta);
entityMeta.forInterception().addInterceptor(createInterceptorForCompleteBean(PRE_INSERT, 30L));
entityMeta.forInterception().addInterceptor(createInterceptorForCompleteBean(POST_INSERT, 35L));
entityMeta.forInterception().intercept(bean, PRE_INSERT);
Assertions.assertThat(bean.getAge()).isEqualTo(30L);
entityMeta.forInterception().intercept(bean, POST_INSERT);
Assertions.assertThat(bean.getAge()).isEqualTo(35L);
}