diff --git a/ttool/src/test/java/ui/toavatar/AvatarSecurityTranslationTests.java b/ttool/src/test/java/ui/toavatar/AvatarSecurityTranslationTests.java
index 0fbfffb98d7d6e7b11b9e132b9c9c36530594582..bd0b3acf6a1224508f8289e7464be8d790b29c57 100644
--- a/ttool/src/test/java/ui/toavatar/AvatarSecurityTranslationTests.java
+++ b/ttool/src/test/java/ui/toavatar/AvatarSecurityTranslationTests.java
@@ -141,7 +141,7 @@ public class AvatarSecurityTranslationTests {
 
 		//Setup states
 		TMLExecC tmlexecc = new TMLExecC("encrypt_sym", null);
-		tmlexecc.securityPattern = sec;
+		tmlexecc.setSecurityPattern(sec);
 		start.addNext(tmlexecc);
         task1.getActivityDiagram().addElement(tmlexecc);
 
@@ -176,7 +176,7 @@ public class AvatarSecurityTranslationTests {
 
 		//Setup states
 		TMLExecC tmlexecc = new TMLExecC("encrypt_asym", null);
-		tmlexecc.securityPattern = sec;
+		tmlexecc.setSecurityPattern(sec);
 		start.addNext(tmlexecc);
         task1.getActivityDiagram().addElement(tmlexecc);
 
@@ -202,7 +202,7 @@ public class AvatarSecurityTranslationTests {
 
 		//Setup states
 		TMLExecC tmlexecc = new TMLExecC("encrypt_asym", null);
-		tmlexecc.securityPattern = sec;
+		tmlexecc.setSecurityPattern(sec);
 		start.addNext(tmlexecc);
         task1.getActivityDiagram().addElement(tmlexecc);
 
@@ -232,7 +232,7 @@ public class AvatarSecurityTranslationTests {
 
 		//Setup states
 		TMLExecC tmlexecc = new TMLExecC("encrypt_mac", null);
-		tmlexecc.securityPattern = sec;
+		tmlexecc.setSecurityPattern(sec);
 		start.addNext(tmlexecc);
         task1.getActivityDiagram().addElement(tmlexecc);