If a template generates invalid Java code, the test now fails. refs 596