public void checkCase1() throws CoreException {
String mod1Contents = "from javamod1 import javamod2\njavamod2.JavaClass2";
setFileContents(mod1Contents);
PyGoToDefinition pyGoToDefinition = new PyGoToDefinition();
pyGoToDefinition.setEditor(editor);
editor.setSelection(mod1Contents.length() - 2, 0);
editor.doSave(null); //update the caches
ItemPointer[] itemPointers = pyGoToDefinition.findDefinitionsAndOpen(false);
for (ItemPointer pointer : itemPointers) {
System.out.println(pointer);
}
assertTrue(itemPointers.length >= 1);
}