}
@Test
public void testThreadIsRegisteredBeginTask() throws InstantiationException, IllegalAccessException {
TaskHandle task = mock(TaskHandle.class);
EdgeBuffer buffer = mock(EdgeBuffer.class);
when(strat.getBuffer()).thenReturn(buffer);
when(buffer.createHandle()).thenReturn(task);
ver.beforeTask();
assertTrue(ver.isRegistered(Thread.currentThread()));
ver.afterTask();
assertTrue(ver.isRegistered(Thread.currentThread()));