[tests] Bug 447770: JavaProjectFixture returns CompilationUnit of null

Change-Id: I6023e90068d87ad52fadb960bf44c82ad1dc5828