assertEquals(e.getTarget(), e1.getTarget());
}
@Test
public void onEvent() throws JMSException {
PrincipalProvider pp = mock(PrincipalProvider.class);
when(pp.get()).thenReturn(TestUtil.createPrincipal("admin", null, null));
EventFactory factory = new EventFactory(pp);
Consumer c = TestUtil.createConsumer();
Event e = factory.consumerCreated(c);
TopicPublisher tp = publisherMap.get(Target.CONSUMER).get(Type.CREATED);