@Test
public void shouldCollectStatsWhenActive() throws HdfsThreadException {
List<String> activeCollectors = new ArrayList<String>();
activeCollectors.add("hdfs");
Thread testHdfsCollector = new Thread(new HdfsCollector("TestHDFS", hdfsUri.toString(), "hdfs://localhost:55314", null,
activeCollectors, database), "Hdfs Test Thread");
testHdfsCollector.start();
waitForThreadToSleep(testHdfsCollector, 250);
int statsCount = jdbc.queryForInt("select count(id) from hdfs_stats");