@Test
public void testExtensionBundleDeleted() {

    final Event event = EventFactory.extensionBundleDeleted(bundle);
    event.validate();
    assertEquals(EventType.DELETE_EXTENSION_BUNDLE, event.getEventType());
    assertEquals(3, event.getFields().size());
    assertEquals(bucket.getIdentifier(), event.getField(EventFieldName.BUCKET_ID).getValue());
    assertEquals(bundle.getIdentifier(), event.getField(EventFieldName.EXTENSION_BUNDLE_ID).getValue());
    assertEquals("unknown", event.getField(EventFieldName.USER).getValue());
}