### Question:
MapManager extends AbstractMongoManager { public BseMap toBseMap() { BseMap.Builder builder = BseMap.newBuilder(); TreeSet<MapPojo> maps = new TreeSet<MapPojo>(dataMap.values()); for ( MapPojo mapPojo : maps ) { builder.addMaps(mapPojo.toMapData()); } return builder.build(); } MapManager(); static MapManager getInstance(); void reload(); MapPojo getMapById(String id); Collection<MapPojo> getMaps(); BseMap toBseMap();  }### Answer:
@Test public void testToBseMap() { BseMap bseMap = MapManager.getInstance().toBseMap(); System.out.println(bseMap.getSerializedSize()); }