Code example for SocketHandler

0
		} catch (IOException e) {
 
		} 
 
		try { 
			h = new SocketHandler(" 34345 #$#%$%$", 6666);
			fail("Should throw IOException!");
		} catch (IOException e) {
 
		} 
	} 
 
	/* 
	 * Test close() when having sufficient privilege, and a record has been 
	 * written to the output stream. 
	 */ 
	public void testClose_SufficientPrivilege_NormalClose() throws Exception { 
		Properties p = new Properties();
		p.put("java.util.logging.SocketHandler.formatter", className
				+ "$MockFormatter");