	@Test
	public void testSetNetworkTimeout() throws Exception
	{

		final int[] count=new int[2];
		Result result=new Result();
		ExecutorService executor=Executors.newCachedThreadPool();
		int milliseconds=5000;
		AbstractProxyConnection proxyConnection=this.createProxyConnectionForPhysical(count, "setNetworkTimeout",result,null);
		proxyConnection.setNetworkTimeout(executor, milliseconds);
		assertTrue(count[0]==1 && count[1]==1);
		assertTrue(Arrays.equals(result.args, new Object[]{executor, milliseconds}));
	}