@Test
  public void changeMethod() throws Exception {

    boolean valid = false;

    MyBean myBean = new MyBean();
    myBean.authorize(valid);

    // transform method...
    ClassTransformation transformation = new MethodTransformation();
    Class<MyBean> aClass = transformation.execute(MyBean.class);

    Object obj = aClass.newInstance();
    obj.getClass().getMethod("authorize", boolean.class).invoke(obj, valid);
  }