### Question:
EquipManager extends AbstractMongoManager { public List<WeaponPojo> getWeaponsByTypeName(String typeName) { return typeWeapons.get(typeName); } EquipManager(); static EquipManager getInstance(); void reload(); WeaponPojo getWeaponById(String id); Collection<WeaponPojo> getWeapons(); Collection<WeaponPojo> getWeaponsBySlot(EquipType equipType); final WeaponPojo getRandomWeapon(User user, EquipType equipType, int quality); final WeaponPojo getRandomWeapon(int userLevel, EquipType equipType, int quality); final WeaponPojo getRandomWeaponWithoutCheckReward(Gender gender, int userLevel, EquipType equipType, int quality); List<WeaponPojo> getWeaponsByTypeName(String typeName); WeaponPojo getWeaponByTypeNameAndUserLevel(String typeName, int userLevel); WeaponPojo getRandomWeaponByGenderAndLevel(Gender gender, User user); WeaponPojo getRandomWeaponByGenderAndLevel(Gender gender, int userLevel); WeaponPojo getRandomWeaponByQualityAndLevel(int userLevel, int quality); boolean checkWeaponLevelForUser(User user, String weaponId); BseEquipment toBseEquipment(); BseZip toBseZip();  }### Answer:
@Test public void testGetWeaponsByTypeName() { EquipManager manager = EquipManager.getInstance(); List<WeaponPojo> weapons = manager.getWeaponsByTypeName("87"); List<WeaponPojo> sortWeapons = new ArrayList<WeaponPojo>(weapons); Collections.sort(sortWeapons); assertArrayEquals(sortWeapons.toArray(), weapons.toArray()); weapons = manager.getWeaponsByTypeName("100"); assertTrue(weapons.size()>0); }