JavaFile clazz = new JavaFile("onelevel.MyFile");
assertEquals("onelevel.MyFile", clazz.getKey());
assertEquals("onelevel", clazz.getParent().getKey());
clazz = new JavaFile("onelevel", "MyFile");
assertEquals("onelevel.MyFile", clazz.getKey());
<BUG>assertEquals("onelevel", clazz.getParent().getKey());
List<File> sources = Arrays.asList(newDir("sources"));

JavaFile javaFile = JavaFile.fromAbsolutePath(absPath("sources/onelevel/MyFile.java"), sources, false);
</BUG>
assertEquals("onelevel.MyFile", javaFile.getKey());

JavaFile clazz = new JavaFile("onelevel.MyFile");
assertEquals("onelevel.MyFile", clazz.getKey());
assertEquals("onelevel", clazz.getParent().getKey());
clazz = new JavaFile("onelevel", "MyFile");
assertEquals("onelevel.MyFile", clazz.getKey());
assertEquals("onelevel", clazz.getParent().getKey());
File sourceDir = newDir("sources");
List<File> sources = Arrays.asList(sourceDir);
JavaFile javaFile = JavaFile.fromAbsolutePath(absPath(sourceDir, "onelevel/MyFile.java"), sources, false);
assertEquals("onelevel.MyFile", javaFile.getKey());
