@Test
public void testNonDefaultPackageClassNameParsing() {

    assertThat(Compilations.getPublicClassName("package a.b; public class X {}"))
            .isEqualTo("a.b.X");
    assertThat(Compilations.getPublicClassName("  package a.b; public class X {}"))
            .isEqualTo("a.b.X");
    assertThat(Compilations.getPublicClassName("\n  package a.b; \n public class X {}"))
            .isEqualTo("a.b.X");
}