Java generator tests, fixed #401.