@Test
public void testOldStyleConfiguration() {

  Configuration conf = new Configuration();
  conf.set("dfs.web.ugi", "joe,group1,group2");
  assertEquals("joe", StaticUserWebFilter.getUsernameFromConf(conf));
}