### Question:
MethodDesc { public void setTransactionAnnotation(GlobalTransactional transactionAnnotation) { this.transactionAnnotation = transactionAnnotation; } MethodDesc(GlobalTransactional transactionAnnotation, Method method); GlobalTransactional getTransactionAnnotation(); void setTransactionAnnotation(GlobalTransactional transactionAnnotation); Method getMethod(); void setMethod(Method method);  }### Answer:
@Test public void testSetTransactionAnnotation() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { MethodDesc methodDesc = getMethodDesc(); assertThat(methodDesc.getTransactionAnnotation()).isNotNull(); methodDesc.setTransactionAnnotation(null); assertThat(methodDesc.getTransactionAnnotation()).isNull(); }