add test to check that menu contribution mnemonic is active in java editor