@Test
public void getMethodName() {

  assertThat(EventConverter.getMethodName("confirm=text1,cancel=text2",true), is("text1"));
  assertThat(EventConverter.getMethodName("confirm=text1,cancel=text2",false), is("text2"));
}