void () { PsiClass bClass = myFixture.addClass("package foo;\nimport bar.A;\npublic final class B extends A {}"); myFixture.configureByText("A.java", "package bar;\n import foo.B;\npublic sealed class A permits <caret>B {}"); invokeFix("Move to package 'bar'"); assertEquals("package bar;\nimport bar.A;\npublic final class B extends A {}", bClass.getContainingFile().getText()); }