added test
diff --git a/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/dataTests/resources/reference.intent b/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/dataTests/resources/reference.intent
new file mode 100644
index 0000000..06afb61
--- /dev/null
+++ b/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/dataTests/resources/reference.intent
@@ -0,0 +1,11 @@
+@M
+	Resource p1Res {
+		content += p1;
+	}
+	new EPackage p1 {
+		nsPrefix = "p1";
+		nsURI = "http://p1";
+		eClassifiers += c1;
+	}
+	new EClass c1 {}
+M@
\ No newline at end of file
diff --git a/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/src/org/eclipse/mylyn/docs/intent/client/compiler/test/unit/GeneratedResourcesTest.java b/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/src/org/eclipse/mylyn/docs/intent/client/compiler/test/unit/GeneratedResourcesTest.java
index 63f207e..795b2aa 100644
--- a/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/src/org/eclipse/mylyn/docs/intent/client/compiler/test/unit/GeneratedResourcesTest.java
+++ b/tests/org.eclipse.mylyn.docs.intent.client.compiler.test/src/org/eclipse/mylyn/docs/intent/client/compiler/test/unit/GeneratedResourcesTest.java
@@ -49,4 +49,9 @@
 	public void testQualifiedNameNewInstance() {

 		compile("dataTests/resources/qualifiedNameNewInstance.intent");

 	}

+

+	@Test

+	public void testReference() {

+		compile("dataTests/resources/reference.intent");

+	}

 }