@Test
public void testBucketDeletedEvent() {

    final Event event = EventFactory.bucketDeleted(bucket);
    event.validate();
    assertEquals(EventType.DELETE_BUCKET, event.getEventType());
    assertEquals(2, event.getFields().size());
    assertEquals(bucket.getIdentifier(), event.getField(EventFieldName.BUCKET_ID).getValue());
    assertEquals("unknown", event.getField(EventFieldName.USER).getValue());
}