    @Test(expectedExceptions = NullPointerException.class)
    public void testCheckAccessNullThread() {

        System.setProperty("denied.system.properties", "mockDeniedProperty");
        carbonSecurityManager = new CarbonSecurityManager();
        Thread thread = null;
        assertNull(thread);
        carbonSecurityManager.checkAccess(thread);
    }