anchor.diff:   * 
    * You should have received a copy of the GNU Lesser General Public 
    * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  - * 
  - ---><cfcomponent extends="org.lucee.cfml.test.LuceeTestCase">
  -	<cfset variables.cacheName="Test"&ListFirst(ListLast(getCurrentTemplatePath(),"\/"),".")>
  + */
  + component extends="org.lucee.cfml.test.LuceeTestCase" {
  + 	
  +	variables.cacheName="Test"&ListFirst(ListLast(getCurrentTemplatePath(),"\/"),".");
   	
  -	<cffunction name="testCachePutEHCache" localMode="modern">
  -		<cfset createEHCache()>
  -		<cfset testCachePut()>
  -		<cfset deleteCache()>
  -	</cffunction>
  +	public function testCachePutEHCache() {
  +		if(!isNull(request.testJBossExtension) and request.testJBossExtension) {
  +			createEHCache();
  +			testCachePut();
  +			deleteCache();
  +		}
  +	}
   
  -	<cffunction name="testCachePutRAMCache" localMode="modern">
  -		<cfset createRAMCache()>
  -		<cfset testCachePut()>
  -		<cfset deleteCache()>
  -	</cffunction>
  +	public function testCachePutRAMCache() {
  +		if(!isNull(request.testJBossExtension) and request.testJBossExtension) {
  +			createRAMCache();
  +			testCachePut();
  +			deleteCache();
  +		}
  +	}
   
  -	<cffunction name="testCachePutJBossCache" localMode="modern">
  -		<cfif !isNull(request.testJBossExtension) and request.testJBossExtension>
  -			<cfset createJBossCache()>
  -			<cfset testCachePut()>
  -			<cfset deleteCache()>
  -		</cfif>
  -	</cffunction>
  +	public function testCachePutJBossCache() {
  +		if(!isNull(request.testJBossExtension) and request.testJBossExtension) {
  +			createJBossCache();
  +			testCachePut();
  +			deleteCache();
  +		}
  +	}
   
   	
  -	<cffunction access="private" name="testCachePut" localMode="modern">
  +	private function testCachePut() localMode="modern" {
  +		server.enableCache=true;
   
  -<!--- begin old test code --->
  -<cfset server.enableCache=true>
  +		lock scope="server" timeout="10" {
  +			prefix=getTickCount();
  +			cachePut(prefix&'abc','123',CreateTimeSpan(0,0,0,1));
  +			cachePut(prefix&'def','123',CreateTimeSpan(0,0,0,2),CreateTimeSpan(0,0,0,1));
  +			cachePut(prefix&'ghi','123',CreateTimeSpan(0,0,0,0),CreateTimeSpan(0,0,0,0));
   
  -<cflock scope="server" timeout="10">
  -	<!--- <cfset cacheRemove(arrayToList(cacheGetAllIds()))> --->
  -	<cfset prefix=getTickCount()>
  +			sct={};
  +    		sct.a=cacheGet(prefix&'abc');
  +    		sct.b=cacheGet(prefix&'def');
  +    		sct.c=cacheGet(prefix&'ghi');
  +    		
  +    		assertEquals(true,structKeyExists(sct,'a'));
  +    		assertEquals(true, structKeyExists(sct,'b'));
  +    		assertEquals(true, structKeyExists(sct,'c'));
   
  -	<cfset cachePut(prefix&'abc','123',CreateTimeSpan(0,0,0,1))>
  -	<cfset cachePut(prefix&'def','123',CreateTimeSpan(0,0,0,2),CreateTimeSpan(0,0,0,1))>
  -	<cfset cachePut(prefix&'ghi','123',CreateTimeSpan(0,0,0,0),CreateTimeSpan(0,0,0,0))>
  -    
  -	<cfset sct={}>
  -    <cfset sct.a=cacheGet(prefix&'abc')>
  -    <cfset sct.b=cacheGet(prefix&'def')>
  -    <cfset sct.c=cacheGet(prefix&'ghi')>
  -    
  -    <cfset valueEquals(left="#structKeyExists(sct,'a')#", right="true")>
  -    <cfset valueEquals(left="#structKeyExists(sct,'b')#", right="true")>
  -    <cfset valueEquals(left="#structKeyExists(sct,'c')#", right="true")>
  -    <cfset sleep(1200)>
  -    <cfset sct.d=cacheGet(prefix&'abc')>
  -    <cfset sct.e=cacheGet(prefix&'def')>
  -    <cfset sct.f=cacheGet(prefix&'ghi')>
  -    <cfset valueEquals(left="#structKeyExists(sct,'d')#", right="false")>
  -    <cfset valueEquals(left="#structKeyExists(sct,'e')#", right="false")>
  -    <cfset valueEquals(left="#structKeyExists(sct,'f')#", right="true")>
  -    
  -<cfif server.ColdFusion.ProductName EQ "lucee">    
  -	<cfset cachePut(prefix&'def','123',CreateTimeSpan(0,0,0,2),CreateTimeSpan(0,0,0,1),cacheName)>
  -</cfif>
  -</cflock>
  +    		sleep(1200);
  +    		sct.d=cacheGet(prefix&'abc');
  +    		sct.e=cacheGet(prefix&'def');
  +    		sct.f=cacheGet(prefix&'ghi');
   
  -<!--- end old test code --->
  +    		assertEquals(false,structKeyExists(sct,'d'));
  +    		assertEquals(false,structKeyExists(sct,'e'));
  +    		assertEquals(true,structKeyExists(sct,'f'));
  +    		
  +    		cachePut(prefix&'def','123',CreateTimeSpan(0,0,0,2),CreateTimeSpan(0,0,0,1),cacheName);
  +
  +		}
  +	}
   	
  -		
  -		<!--- <cfset assertEquals("","")> --->
  -	</cffunction>
  -	
  -	<cffunction access="private" name="valueEquals">
  -		<cfargument name="left">
  -		<cfargument name="right">
  -		<cfset assertEquals(arguments.right,arguments.left)>
  -	</cffunction>
  -	
  -<cfscript>
   	private function createRAMCache(){
   		admin 
   				action="updateCacheConnection"
  
positive.code: 			name="#cacheName#";
  						
  	}
  </cfscript>	
  </cfcomponent>
negative.code: /*
   * Copyright (c) 2014, the Railo Company LLC. All rights reserved.
   *
   * This library is free software; you can redistribute it and/or
  