Test and fix for Bug 323076 -  [search] Search doesn't find OTTypeHierarchyImpl.connectTSupers(..)
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/search/org/eclipse/objectteams/otdt/tests/search/OTJavaMethodSearchTests.java b/testplugins/org.eclipse.objectteams.otdt.tests/search/org/eclipse/objectteams/otdt/tests/search/OTJavaMethodSearchTests.java
index d3c542a..0433fe0 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/search/org/eclipse/objectteams/otdt/tests/search/OTJavaMethodSearchTests.java
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/search/org/eclipse/objectteams/otdt/tests/search/OTJavaMethodSearchTests.java
@@ -1310,5 +1310,20 @@
 				resultCollector);
 	}
 
-	
+	public void test323076() throws CoreException {
+		JavaSearchResultCollector resultCollector = new JavaSearchResultCollector();
+		IJavaProject project= getJavaProject("OTJavaSearch");
+		IType type= project.findType("bug323076.MyTeam");
+		IMethod method = type.getMethod("foo", new String[]{"[QMyBase;"});
+		
+		search( method,
+				REFERENCES,
+				getJavaSearchScopeFromPackages(new String[]{"bug323076"}), 
+				resultCollector);
+		
+		assertSearchResults("Search for references to method with array lifting",
+				"src/bug323076/MyTeam.java void bug323076.MyTeam.test() [foo(new MyBase[]{ new MyBase() })]",
+				resultCollector);
+		
+	}
 }
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/workspace/OTJavaSearch/src/bug323076/MyBase.java b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/OTJavaSearch/src/bug323076/MyBase.java
new file mode 100644
index 0000000..262c2ec
--- /dev/null
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/OTJavaSearch/src/bug323076/MyBase.java
@@ -0,0 +1,3 @@
+package bug323076;
+
+public class MyBase { }
\ No newline at end of file
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/workspace/OTJavaSearch/src/bug323076/MyTeam.java b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/OTJavaSearch/src/bug323076/MyTeam.java
new file mode 100644
index 0000000..995d548
--- /dev/null
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/workspace/OTJavaSearch/src/bug323076/MyTeam.java
@@ -0,0 +1,11 @@
+package bug323076;
+
+public team class MyTeam {
+	protected class R playedBy MyBase {}
+	
+	public void foo(MyBase as R r[]) {}
+	
+	void test() {
+		foo(new MyBase[]{ new MyBase() });
+	}
+}
\ No newline at end of file