@Test(expected = ActionTestException.class)
  public void testFailPrivateMethod() throws Exception {
    // given
    final PrivateTestActionContext context = new PrivateTestActionContext();

    // when
    actionService.doAction(new SingleAction(unicastFor(agent.getAddress()), context));
    actionService.processActions();
  }
  @Test
  public void testExecuteDefaultActionFromContext() {
    // given
    final SimpleTestActionContext context = new SimpleTestActionContext();

    // when
    actionService.doAction(new SingleAction(unicastFor(agent.getAddress()), context));
    actionService.processActions();

    // then
    assertThat(context.actionRun, is(true));
  }
  @Test
  public void testPackageMethod() throws Exception {
    // given
    final PackageTestActionContext context = new PackageTestActionContext();

    // when
    actionService.doAction(new SingleAction(unicastFor(agent.getAddress()), context));
    actionService.processActions();

    // then
    assertThat(context.actionRun, is(true));
  }
 @SuppressWarnings("unused")
 @Test(expected = NullPointerException.class)
 public void testNullContext() {
   // when
   new SingleAction(unicastFor(agent.getAddress()), null);
 }