### Question:
StateModelParser { public Method getMethodForTransition(Class<? extends StateModel> clazz, String fromState, String toState, Class<?>[] paramTypes) { Method method = getMethodForTransitionUsingAnnotation(clazz, fromState, toState, paramTypes); if (method == null) { method = getMethodForTransitionByConvention(clazz, fromState, toState, paramTypes); } return method; }  Method getMethodForTransition(Class<? extends StateModel> clazz, String fromState,
      String toState, Class<?>[] paramTypes); Method getMethodForTransitionByConvention(Class<? extends StateModel> clazz,
      String fromState, String toState, Class<?>[] paramTypes); Method getMethodForTransitionUsingAnnotation(Class<? extends StateModel> clazz,
      String fromState, String toState, Class<?>[] paramTypes); String getInitialState(Class<? extends StateModel> clazz);  }### Answer:
@Test public void testUsingNameConvention() { StateModelParser parser = new StateModelParser(); StateModelUsingNameConvention testModel = new StateModelUsingNameConvention(); Method method = parser.getMethodForTransition(testModel.getClass(), "error", "dropped", new Class[] { Message.class, NotificationContext.class }); Assert.assertNotNull(method); Assert.assertEquals(method.getName(), "onBecomeDroppedFromError"); }