public void ActorSubscriberSpec_should_terminate_after_cancel()
{
var actorRef = Source.From(Enumerable.Range(1, 5))
.RunWith(Sink.ActorSubscriber<int>(ManualSubscriber.Props(TestActor)), Sys.Materializer());
Watch(actorRef);
actorRef.Tell("requestAndCancel");
ExpectTerminated(actorRef, TimeSpan.FromMilliseconds(200));
}