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