void () { myFixture.configureByText("pom.xml", """ <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>simpleMaven</groupId> <artifactId>simpleMaven</artifactId> <version>1.0</version> <packaging>jar</packaging> <build> <plugins> <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.0</version> <executions> <execution> <id>groovy-magic</id> <phase>package</phase> <goals> <goal>execute</goal> </goals> <configuration> <source> String<caret> </source> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant-nodeps</artifactId> <version>1.8.0</version> </dependency> </dependencies> </plugin> </plugins> </build> </project> """); myFixture.completeBasic(); List<String> lookups = myFixture.getLookupElementStrings(); assert lookups.containsAll(new ArrayList<String>(Arrays.asList("String", "StringBuffer", "StringBuilder"))); }