assertNotNull( getNetworkProxyService().getNetworkProxies() );
assertFalse( getNetworkProxyService().getNetworkProxies().isEmpty() );
assertEquals( 1, getNetworkProxyService().getNetworkProxies().size() );
NetworkProxy networkProxy = getNetworkProxy( "foo" );
networkProxy.setHost( "http://toto.com" );
networkProxy.setPassword( "newpasswd" );
networkProxy.setUsername( "newusername" );
networkProxy.setPort( 9191 );
getNetworkProxyService().updateNetworkProxy( networkProxy );
assertEquals( networkProxy.getHost(), getNetworkProxyService().getNetworkProxy( "foo" ).getHost() );
assertEquals( networkProxy.getPassword(), getNetworkProxyService().getNetworkProxy( "foo" ).getPassword() );
assertEquals( networkProxy.getUsername(), getNetworkProxyService().getNetworkProxy( "foo" ).getUsername() );
assertEquals( networkProxy.getPort(), getNetworkProxyService().getNetworkProxy( "foo" ).getPort() );
getNetworkProxyService().deleteNetworkProxy( "foo" );
assertNotNull( getNetworkProxyService().getNetworkProxies() );
assertTrue( getNetworkProxyService().getNetworkProxies().isEmpty() );