class Oadr20bVENEiEventService {

	public boolean isKnownEvent(VtnSessionConfiguration vtnConfiguration, OadrEvent event) {
		return getOadrEvents(vtnConfiguration).containsKey(event.getEiEvent().getEventDescriptor().getEventID());
	}

}

class Oadr20bVENEiEventServiceTest {

	private static final Properties PROPERTIES;
	private static final VtnSessionConfiguration VTN_SOURCE;
	@Resource
	private Oadr20bVENEiEventService oadr20bVENEiEventService;

	@Test
	public void isKnownEventTest() {

		String eventId = "event1";
		OadrEvent createOadrEvent = createOadrEvent(eventId, 0L);
		assertFalse(oadr20bVENEiEventService.isKnownEvent(VTN_SOURCE, createOadrEvent));
		oadr20bVENEiEventService.saveOadrEvent(VTN_SOURCE, createOadrEvent);
		assertTrue(oadr20bVENEiEventService.isKnownEvent(VTN_SOURCE, createOadrEvent));
		oadr20bVENEiEventService.clearOadrEvents();
	}

}