public class LoadTestNodeOperationTest extends AbstractNodeOperationMockTest {
@Test
public void testNodeOperation() throws Exception {
AbstractQueryExecutor queryExecutor = mock(AbstractQueryExecutor.class);
String[] queries = new String[] { "a", "b", "c" };
when(queryExecutor.getQueries()).thenReturn(queries);
final int queryRate = 10;
final int runTime = 2000;
LoadTestNodeOperation nodeOperation = new LoadTestNodeOperation(queryExecutor, queryRate, runTime);
long startTime = System.currentTimeMillis();
nodeOperation.execute(_context);