@Test
public void testFrom() throws Exception {

    Map<String, Object> items = new HashMap<String, Object>();
    items.put(IDENTIFIER, new Long(7));
    items.put(SYMBOLIC_NAME, "t");
    items.put(LOCATION, "l");
    items.put(EVENT, BundleEvent.RESOLVED);
    CompositeData compositeData = new CompositeDataSupport(BUNDLE_EVENT_TYPE, items);
    BundleEventData event = BundleEventData.from(compositeData);
    
    assertEquals(7, event.getBundleId());
    assertEquals("t", event.getBundleSymbolicName());
    assertEquals("l", event.getLocation());
    assertEquals(BundleEvent.RESOLVED, event.getEventType());
        
}