@Test
public void testPullParams() throws Exception {
final Queue queue = QueueFactory.getQueue("pull-queue");
TaskHandle th = queue.add(withMethod(PULL).param("foo", "bar").etaMillis(15000));
try {
List<TaskHandle> handles = waitOnFuture(queue.leaseTasksAsync(30, TimeUnit.MINUTES, 100));
assertFalse(handles.isEmpty());
TaskHandle lh = handles.get(0);
assertEquals(th.getName(), lh.getName());
} finally {
queue.deleteTask(th);