void () { myFixture.addClass("package com.foo; public class Interface {}"); myFixture.addClass("package com.foo; public class Implementation extends Interface {}"); myFixture.configureFromExistingVirtualFile( myFixture.addFileToProject("META-INF/services/com.foo.Interface", "com.f<caret>").getVirtualFile()); myFixture.completeBasic(); myFixture.checkResult("com.foo.Implementation"); }