### Question:
LevelManager extends AbstractMongoManager { public LevelPojo getLevel(int level) { if ( level <= 0 ) { return firstLevel; } else if ( level >= MAX_LEVEL ) { return lastLevel; } else { LevelPojo pojo = dataMap.get(level); return pojo; } } LevelManager(); static LevelManager getInstance(); void reload(); LevelPojo getLevel(int level); Collection<LevelPojo> getLevels(); static final int MAX_LEVEL; }### Answer:
@Test public void testGetLevel() { int count = LevelManager.getInstance().getLevels().size(); assertEquals(100, count); LevelPojo pojo = LevelManager.getInstance().getLevel(1); System.out.println(pojo); assertNotNull(pojo); }