@Test
public void testFrom() throws Exception {

    
    Map<String, Object> items = new HashMap<String, Object>();
    items.put(IDENTIFIER, new Long(7));
    items.put(BUNDLE_IDENTIFIER, new Long(67));
    items.put(BUNDLE_LOCATION, "string");
    items.put(BUNDLE_SYMBOLIC_NAME, "test");
    items.put(OBJECT_CLASS, new String[] {"org.apache.aries.jmx.Mock" });
    items.put(EVENT, ServiceEvent.MODIFIED);
    CompositeData compositeData = new CompositeDataSupport(SERVICE_EVENT_TYPE, items);
    ServiceEventData event = ServiceEventData.from(compositeData);
    
    assertEquals(7, event.getServiceId());
    assertEquals(67, event.getBundleId());
    assertArrayEquals(new String[] {"org.apache.aries.jmx.Mock" }, event.getServiceInterfaces());
    assertEquals("test", event.getBundleSymbolicName());
    assertEquals("string", event.getBundleLocation());
    assertEquals(ServiceEvent.MODIFIED, event.getEventType());
    
}