EventsUtils { public static boolean eventsPresent(final DeploymentEvents events, final int from, final int to) { for (int i = from; i <= to; i++) { DeploymentEvent event = retrieveEventWithIndex(i, events.getEvents()); if (event == null) { return false; } } return true; } 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 testEventsPresent() throws Exception { DeploymentEvents events = createEvents(0, 10); Assert.assertTrue(EventsUtils.eventsPresent(events, 0, 10)); Assert.assertTrue(EventsUtils.eventsPresent(events, 5, 8)); Assert.assertFalse(EventsUtils.eventsPresent(events, 0, 15)); }