public static String fullClassName(CompileUnit unit) {
    return unit.pkg + "." + unit.mainClassName;
  }
@Test
  public void fullClassName() {
    CompileUnit unit =
        new CompileUnit(Foo.class.getPackage().getName(), Foo.class.getSimpleName(), "");
    Assert.assertEquals(CodeGenerator.fullClassName(unit), Foo.class.getName());
  }