}
@Test
public void testSupervisorStrategy2() throws Exception {
ActorRef supervisorActorRef2 = _system.actorOf(new Props(
SupervisorActor.class), "supervisor2");
final TestProbe probe = new TestProbe(_system);
// register the BoomActor with the Supervisor
final ActorRef child = (ActorRef) Await.result(
ask(supervisorActorRef2, new Props(BoomActor.class), 5000),
Duration.parse("5 second"));
probe.watch(child);
// second check
child.tell("do something");
probe.expectMsg(new Terminated(child));