### Question:
MapEventFactory { static MapLoadEvent buildMapLoadEvent(@NonNull PhoneState phoneState) { String userId = TelemetryUtils.retrieveVendorId(); return new MapLoadEvent(userId, phoneState); }    }### Answer:
@Test public void testMapLoadEvent() { MapLoadEvent mapLoadEvent = MapEventFactory.buildMapLoadEvent(phoneState); assertEquals("Android - " + Build.VERSION.RELEASE, mapLoadEvent.getOperatingSystem()); assertEquals(Build.MODEL, mapLoadEvent.getModel()); assertNotNull(mapLoadEvent.getUserId()); assertEquals(BATTERY_LEVEL, mapLoadEvent.getBatteryLevel()); assertEquals(CARRIER, mapLoadEvent.getCarrier()); assertEquals(NETWORK_TYPE, mapLoadEvent.getCellularNetworkType()); assertEquals(CREATED, mapLoadEvent.getCreated()); assertEquals("Landscape", mapLoadEvent.getOrientation()); assertEquals(BuildConfig.MAPBOX_SDK_IDENTIFIER, mapLoadEvent.getSdkIdentifier()); assertEquals(BuildConfig.MAPBOX_SDK_VERSION, mapLoadEvent.getSdkVersion()); assertEquals(PLUGIN, mapLoadEvent.isPluggedIn()); assertEquals(WIFI, mapLoadEvent.isWifi()); assertEquals(FONT_SCALE, mapLoadEvent.getAccessibilityFontScale(), 0); String json = gson.toJson(mapLoadEvent); MapLoadEvent event = gson.fromJson(json, MapLoadEvent.class); assertEquals(mapLoadEvent, event); }