public void FailedMethodYieldsInvocationException()
 {
     try
     {
         TestService service = new TestService();
         service.Invoke("BadMethod", null);
         Assert.Fail("Expecting an exception.");
     }
     catch (TargetMethodException e)
     {
         Assert.IsTrue(e.InnerException.GetType() == typeof(ApplicationException), "Unexpected inner exception ({0}).", e.InnerException.GetType().FullName);
     }
 }