* The dev_appserver generates random statistics.
*/
@Test
public void testStatsApiBasic() throws Exception {
final Queue queue = QueueFactory.getQueue("pull-queue");
QueueStatistics stats = queue.fetchStatistics();
Assert.assertNotNull(stats);
Assert.assertEquals("pull-queue", stats.getQueueName());
Assert.assertTrue(stats.getEnforcedRate() >= 0);
Assert.assertTrue(stats.getNumTasks() >= 0);
Assert.assertTrue(stats.getExecutedLastMinute() >= 0);
Assert.assertTrue(stats.getOldestEtaUsec() == null || stats.getOldestEtaUsec() >= 0);
Assert.assertTrue(stats.getRequestsInFlight() >= 0);
}