### Question:
MethodDesc { public GlobalTransactional getTransactionAnnotation() { return transactionAnnotation; } MethodDesc(GlobalTransactional transactionAnnotation, Method method); GlobalTransactional getTransactionAnnotation(); void setTransactionAnnotation(GlobalTransactional transactionAnnotation); Method getMethod(); void setMethod(Method method);  }### Answer:
@Test public void testGetTransactionAnnotation() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException { MethodDesc methodDesc = getMethodDesc(); assertThat(methodDesc.getTransactionAnnotation()).isEqualTo(transactional); }