EventsUtils { public static DeploymentEvent retrieveEventWithIndex(final int i, final List<DeploymentEvent> serviceDeploymentEvents) { for (DeploymentEvent event1 : serviceDeploymentEvents) { if (event1.getIndex() == i) { return event1; } } return null; } private  EventsUtils(); static DeploymentEvent logToEvent(final LogEntry logEntry,
			final String hostName,
			final String hostAddress); static LogEntryMatcher createUSMEventLoggerMatcher(); static DeploymentEvents extractDesiredEvents(final DeploymentEvents events,
			final int from,
			final int to); static DeploymentEvent retrieveEventWithIndex(final int i,
			final List<DeploymentEvent> serviceDeploymentEvents); static boolean eventsPresent(final DeploymentEvents events,
			final int from,
			final int to); static String getThreadId();  }
@Test public void testRetrieveEventWithIndex() throws Exception { DeploymentEvents events = createEvents(0, 10); Assert.assertEquals(createEvents(0, 0).getEvents().get(0), EventsUtils.retrieveEventWithIndex(0, events.getEvents())); Assert.assertNull(EventsUtils.retrieveEventWithIndex(15, events.getEvents())); }