Code example for SocketHandler

0
		p.put("java.util.logging.SocketHandler.port", "6666i");
		LOG_MANAGER.readConfiguration(
				EnvironmentHelper.PropertiesToInputStream(p));
 
		try { 
			h = new SocketHandler();
			fail("Should throw IllegalArgumentException!");
		} catch (IllegalArgumentException e) {
 
		} 
	} 
 
	/* 
	 * Test the constructor with valid relevant log manager properties are set, 
	 * but the port is not open. 
	 */ 
	public void testConstructor_NotOpenPort() throws Exception { 
		Properties p = new Properties();
		p.put("java.util.logging.SocketHandler.level", "FINE");
		p.put("java.util.logging.SocketHandler.filter", className