### Question:
EventConverter { public static String toMethodInfo(String confirmMethod, String cancelMethod) { return "confirm=" + confirmMethod + ",cancel=" + cancelMethod; }  static ParticipatedEvent convertToParticipatedEvent(GrpcParticipationStartedEvent request); static ParticipatedEvent convertToParticipatedEvent(GrpcParticipationEndedEvent request); static GlobalTxEvent convertToGlobalTxEvent(GrpcTccTransactionStartedEvent request); static GlobalTxEvent convertToGlobalTxEvent(GrpcTccTransactionEndedEvent request); static TccTxEvent convertToTccTxEvent(GrpcTccTransactionStartedEvent event); static TccTxEvent convertToTccTxEvent(GrpcTccTransactionEndedEvent event); static TccTxEvent convertToTccTxEvent(GrpcParticipationStartedEvent event); static TccTxEvent convertToTccTxEvent(GrpcParticipationEndedEvent event); static TccTxEvent convertToTccTxEvent(GrpcTccCoordinatedEvent event); static TccTxEvent convertToTccTxEvent(GlobalTxEvent event); static TccTxEvent convertToTccTxEvent(ParticipatedEvent event); static ParticipatedEvent convertToParticipatedEvent(TccTxEvent event); static String toMethodInfo(String confirmMethod, String cancelMethod); static String getMethodName(String methodInfo, boolean isConfirm);  }### Answer:
@Test public void getMethodInfo() { assertThat(EventConverter.toMethodInfo("test1", "test2"), is("confirm=test1,cancel=test2")); }