DefaultKeyValueEventPersistManager implements KeyValueEventPersistManager { @Override public void firePostKeyValue(KeyValueEntity<?> entity) { keyValueEntityPostPersistEvent.fire(KeyValueEntityPostPersist.of(entity)); }  @Override void firePreKeyValue(KeyValueEntity<?> entity); @Override void firePostKeyValue(KeyValueEntity<?> entity); @Override void firePreEntity(T entity); @Override void firePostEntity(T entity); @Override void firePreKeyValueEntity(T entity); @Override void firePostKeyValueEntity(T entity);  }
@Test public void shouldFirePostColumn() { KeyValueEntity entity = KeyValueEntity.of("key", "value"); subject.firePostKeyValue(entity); ArgumentCaptor<KeyValueEntityPostPersist> captor = ArgumentCaptor.forClass(KeyValueEntityPostPersist.class); verify(keyValueEntityPostPersistEvent).fire(captor.capture()); KeyValueEntityPostPersist captorValue = captor.getValue(); assertEquals(entity, captorValue.getEntity()); }