@Test
public void testCreateAddedEvent() {

    ItemAddedEvent event = ItemEventFactory.createAddedEvent(ITEM);
    assertEquals(ItemAddedEvent.TYPE, event.getType());
    assertEquals(ITEM_ADDED_EVENT_TOPIC, event.getTopic());
    assertNotNull(event.getItem());
    assertEquals(ITEM_NAME, event.getItem().name);
    assertEquals(CoreItemFactory.SWITCH, event.getItem().type);
}