test selected setMaxSize