public void testFindLeastFullRepository() throws Exception { Map repoMap = MapUtil.map( "local:one", new MyDF("/one", 1000), "local:two", new MyDF("/two", 3000), "local:three", new MyDF("/three", 2000)); mgr.setRepoMap(repoMap); assertEquals("local:two", mgr.findLeastFullRepository()); }