### Question:
CarbonSecurityManager extends SecurityManager { public CarbonSecurityManager() { super(); String deniedSystemPropertyString = System.getProperty("denied.system.properties"); if (deniedSystemPropertyString != null) { String[] systemProperties = deniedSystemPropertyString.split(","); for (String systemProperty : systemProperties) { deniedProperties.add(systemProperty.trim()); } } else { throw new IllegalArgumentException("denied.system.properties property is not specified."); } printDeniedSystemProperties(); } CarbonSecurityManager(); @Override void checkPropertyAccess(String key); void checkAccess(ThreadGroup g); void checkAccess(Thread t);  }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testCarbonSecurityManager() { carbonSecurityManager = new CarbonSecurityManager(); }