	@Test
	public void handlePostDelete() throws Exception {

		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.register(DomaEventEntityListener.class);
		context.register(DomaEventListenerFactory.class);
		context.register(PostDeleteHandler.class);
		context.refresh();

		DomaEventEntityListener<Entity> entityListener = context
				.getBean(DomaEventEntityListener.class);

		PostDeleteContext ctx = mock(PostDeleteContext.class);
		Entity entity = new Entity();
		entityListener.postDelete(entity, ctx);
		PostDeleteHandler handler = context.getBean(PostDeleteHandler.class);
		assertThat(handler.entity).isSameAs(entity);
	}