@Test
public void testExtensionBundleVersionDeleted() {

    final Event event = EventFactory.extensionBundleVersionDeleted(bundleVersion);
    event.validate();
    assertEquals(EventType.DELETE_EXTENSION_BUNDLE_VERSION, event.getEventType());
    assertEquals(4, event.getFields().size());
    assertEquals(bucket.getIdentifier(), event.getField(EventFieldName.BUCKET_ID).getValue());
    assertEquals(bundle.getIdentifier(), event.getField(EventFieldName.EXTENSION_BUNDLE_ID).getValue());
    assertEquals(bundleVersion.getVersionMetadata().getVersion(), event.getField(EventFieldName.VERSION).getValue());
    assertEquals("unknown", event.getField(EventFieldName.USER).getValue());
}