### Question:
Configuration implements java.io.Serializable { public java.util.Map<String, NetworkProxyConfiguration> getNetworkProxiesAsMap() { java.util.Map<String, NetworkProxyConfiguration> map = new java.util.HashMap<String, NetworkProxyConfiguration>(); if ( networkProxies != null ) { for ( java.util.Iterator<NetworkProxyConfiguration> i = networkProxies.iterator(); i.hasNext(); ) { NetworkProxyConfiguration proxy = i.next(); map.put( proxy.getId(), proxy ); } } return map; }  void addLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath ); void addManagedRepository( ManagedRepositoryConfiguration managedRepositoryConfiguration ); void addNetworkProxy( NetworkProxyConfiguration networkProxyConfiguration ); void addProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration ); void addProxyConnectorRuleConfiguration( ProxyConnectorRuleConfiguration proxyConnectorRuleConfiguration ); void addRemoteRepository( RemoteRepositoryConfiguration remoteRepositoryConfiguration ); void addRepositoryGroup( RepositoryGroupConfiguration repositoryGroupConfiguration ); ArchivaDefaultConfiguration getArchivaDefaultConfiguration(); ArchivaRuntimeConfiguration getArchivaRuntimeConfiguration(); java.util.List<LegacyArtifactPath> getLegacyArtifactPaths(); java.util.List<ManagedRepositoryConfiguration> getManagedRepositories(); String getMetadataStore(); String getModelEncoding(); NetworkConfiguration getNetworkConfiguration(); java.util.List<NetworkProxyConfiguration> getNetworkProxies(); OrganisationInformation getOrganisationInfo(); java.util.List<ProxyConnectorRuleConfiguration> getProxyConnectorRuleConfigurations(); java.util.List<ProxyConnectorConfiguration> getProxyConnectors(); RedbackRuntimeConfiguration getRedbackRuntimeConfiguration(); java.util.List<RemoteRepositoryConfiguration> getRemoteRepositories(); java.util.List<RepositoryGroupConfiguration> getRepositoryGroups(); RepositoryScanningConfiguration getRepositoryScanning(); String getVersion(); WebappConfiguration getWebapp(); void removeLegacyArtifactPath( LegacyArtifactPath legacyArtifactPath ); void removeManagedRepository( ManagedRepositoryConfiguration managedRepositoryConfiguration ); void removeNetworkProxy( NetworkProxyConfiguration networkProxyConfiguration ); void removeProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration ); void removeProxyConnectorRuleConfiguration( ProxyConnectorRuleConfiguration proxyConnectorRuleConfiguration ); void removeRemoteRepository( RemoteRepositoryConfiguration remoteRepositoryConfiguration ); void removeRepositoryGroup( RepositoryGroupConfiguration repositoryGroupConfiguration ); void setArchivaDefaultConfiguration( ArchivaDefaultConfiguration archivaDefaultConfiguration ); void setArchivaRuntimeConfiguration( ArchivaRuntimeConfiguration archivaRuntimeConfiguration ); void setLegacyArtifactPaths( java.util.List<LegacyArtifactPath> legacyArtifactPaths ); void setManagedRepositories( java.util.List<ManagedRepositoryConfiguration> managedRepositories ); void setMetadataStore( String metadataStore ); void setModelEncoding( String modelEncoding ); void setNetworkConfiguration( NetworkConfiguration networkConfiguration ); void setNetworkProxies( java.util.List<NetworkProxyConfiguration> networkProxies ); void setOrganisationInfo( OrganisationInformation organisationInfo ); void setProxyConnectorRuleConfigurations( java.util.List<ProxyConnectorRuleConfiguration> proxyConnectorRuleConfigurations ); void setProxyConnectors( java.util.List<ProxyConnectorConfiguration> proxyConnectors ); void setRedbackRuntimeConfiguration( RedbackRuntimeConfiguration redbackRuntimeConfiguration ); void setRemoteRepositories( java.util.List<RemoteRepositoryConfiguration> remoteRepositories ); void setRepositoryGroups( java.util.List<RepositoryGroupConfiguration> repositoryGroups ); void setRepositoryScanning( RepositoryScanningConfiguration repositoryScanning ); void setVersion( String version ); void setWebapp( WebappConfiguration webapp ); java.util.Map<String, java.util.List<String>> getRepositoryToGroupMap(); java.util.Map<String, RepositoryGroupConfiguration> getRepositoryGroupsAsMap(); RepositoryGroupConfiguration findRepositoryGroupById( String id ); java.util.Map<String, java.util.List<String>> getGroupToRepositoryMap(); java.util.Map<String, NetworkProxyConfiguration> getNetworkProxiesAsMap(); java.util.Map<String, java.util.List<ProxyConnectorConfiguration>> getProxyConnectorAsMap(); java.util.Map<String, RemoteRepositoryConfiguration> getRemoteRepositoriesAsMap(); RemoteRepositoryConfiguration findRemoteRepositoryById( String id ); java.util.Map<String, ManagedRepositoryConfiguration> getManagedRepositoriesAsMap(); ManagedRepositoryConfiguration findManagedRepositoryById( String id );  }### Answer:
@Test public void testNetworkProxyRetrievalWhenEmpty() { Map<String, NetworkProxyConfiguration> map = configuration.getNetworkProxiesAsMap(); assertNotNull( map ); assertTrue( map.isEmpty() ); }