### Question:
VipManager extends AbstractMongoManager { public BseVipInfo toBseVipInfo() { BseVipInfo.Builder builder = BseVipInfo.newBuilder(); for ( VipPojo vipPojo : vipSet ) { builder.addVipinfo(vipPojo.toBseVipInfo()); } return builder.build(); } VipManager(); static VipManager getInstance(); void reload(); VipPojo getVipPojoById(int id); Collection<VipPojo> getVipPojos(); VipPojo getVipPojoByYuanbao(int chargedYuanbao); int processVipOfflineExp(User user, long currentTimeMillis, boolean sendMail); int getVipLevelRoleActionBuyCount(User user); int getVipLevelCaishenBuyCount(User user); boolean getVipLevelCanBuyTreasureHunt(User user); boolean getVipLevelCanTransferCrossLevel(User user, int weaponLevel); boolean getVipLevelCanTransferCrossColor(User user, WeaponColor weaponColor); double getVipLevelBattleExpRatio(User user); final void userBuyVipPeriod(User user, int id, int payType); final boolean checkUserVipStatus(final User user); BseVipInfo toBseVipInfo();  }### Answer:
@Test public void testToBseVipInfo() { VipManager manager = VipManager.getInstance(); VipPojo period = manager.getVipPojoById(8); period.toBseVipInfo(); assertEquals(1, period.getId()); }