@Test
public void testScheduledCommits() throws Exception {
writeData( sfAsyncExclusiveIndex, NUMBER_ENTITIES );
AbstractWorkspaceImpl workspace = sfAsyncExclusiveIndex.extractWorkspace( Quote.class );
CommitPolicy commitPolicy = workspace.getCommitPolicy();
assertTrue( commitPolicy instanceof ScheduledCommitPolicy );
ScheduledCommitPolicy scheduledCommitPolicy = (ScheduledCommitPolicy) commitPolicy;
ScheduledThreadPoolExecutor scheduledExecutor = (ScheduledThreadPoolExecutor) scheduledCommitPolicy.getScheduledExecutorService();