protected void doTest(String expectedModulePath, String ... filePaths) {
myFixture.configureByFiles(filePaths);
PsiElement focusedElement = myFixture.getFile().findElementAt(myFixture.getEditor().getCaretModel().getOffset());
focusedElement = PsiTreeUtil.getParentOfType(focusedElement, ErlangModuleRef.class);
assertNotNull(focusedElement);
PsiReference reference = focusedElement.getReference();
assertNotNull(reference);
PsiElement moduleElement = reference.resolve();
assertNotNull(moduleElement);
PsiFile containingFile = moduleElement.getContainingFile();
assertNotNull(containingFile);
VirtualFile virtualFile = containingFile.getVirtualFile();
assertNotNull(virtualFile);