### Question:
NetworkInfoMapper { protected NetworkStatus mapStatus(String status) { return networkStatusMap.getOrDefault(status, NetworkStatus.UNKNOWN); } NetworkInfoMapper(Network network); NetworkInfo map();  }### Answer:
@Test public void checkNetworkStatusMap() { NetworkInfoMapper mapper = new NetworkInfoMapper(new Network()); assertEquals(NetworkStatus.ACTIVE, mapper.mapStatus("ACTIVE")); assertEquals(NetworkStatus.BUILD, mapper.mapStatus("BUILD")); assertEquals(NetworkStatus.ERROR, mapper.mapStatus("ERROR")); assertEquals(NetworkStatus.DOWN, mapper.mapStatus("DOWN")); assertEquals(NetworkStatus.UNKNOWN, mapper.mapStatus("NOT IN MAP")); assertEquals(NetworkStatus.UNKNOWN, mapper.mapStatus(null)); }