Remove useless throws Exception in test methods.