@Test
public void stopSelfIfExpectNoMessage() {

    new TestKit(actorSystem) {{
        final TestProbe initialReceiver = TestProbe.apply(actorSystem);
        final ActorRef underTest =
                actorSystem.actorOf(MessageAggregator.props(initialReceiver.ref(), Integer.class, 0, ONE_DAY));
        watch(underTest);
        underTest.tell(true, getRef());
        initialReceiver.expectMsg(true);
        expectMsg(Collections.emptyList());
        expectTerminated(underTest);
    }};
}