PollingReadAttributeTask command = new PollingReadAttributeTask(mockAttribute, mockClient, 0, true, mockLogger);
ScheduledFuture<?> task = singleThreadExecutor.scheduleAtFixedRate(command, 0, Long.MAX_VALUE, TimeUnit.MILLISECONDS);
Thread.sleep(50);
List<Runnable> awaitingTasks = singleThreadExecutor.shutdownNow();
assertEquals(1, awaitingTasks.size());
//TODO rewrite this test as we can not rely on logger any more (it was disabled due to performance issues)
//verify(mockLogger, atLeastOnce()).info("Read attribute null: null");
}
}