@Test
public void packageNameIsReturned() {

  String source = joiner.join("package com.company;", "class Bla { }");
  ReferencedClassesParser parser = parse(source);
  assertThat(parser.packageName).isEqualTo("com.company");
  assertThat(ReferencedClassesParser.getPackageOfJavaFile(source)).isEqualTo("com.company");
}