*/
@Test(groups = "unit", testName = "AsyncMonitorTest")
public class AsyncMonitorTest {
@SuppressWarnings({ "rawtypes", "unchecked" })
public void testStartMonitoringWithoutTimeout() {
ScheduledFuture mockFuture = EasyMock.createMock(ScheduledFuture.class);
ScheduledExecutorService schedulerMock = EasyMock.createMock(ScheduledExecutorService.class);
expect(
schedulerMock.scheduleWithFixedDelay(anyObject(Runnable.class), anyLong(), anyLong(),
anyObject(TimeUnit.class))).andReturn(mockFuture);