+
+ @Test
+ public void testExecuteInActor() {
+ ctx.executeInActor(command);
+ probe.expectMsg(command);
+ }
+
+ @Test
+ public void testExecuteInActorScheduled() {
+ ctx.executeInActor(command, FiniteDuration.create(1, TimeUnit.SECONDS));
+ probe.expectMsg(command);
+ }
+
+ @After
+ public void tearDown() {
+ TestKit.shutdownActorSystem(system);
+ }